Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Triquetrum/Ptolemy/osgi-2-0
This page is notes about how the Ptolemy II osgi-2-0 repository that contains the Ptolemy II sources used by Triquetrum was set up. It is probably not that useful to most people.
See Also
- Ptolemy/Porting - more user friendly instructions about how to port Ptolemy actors to Triquetrum
Setting up a nightly build
We would like to set up a nightly build, so we want to run Maven, create jar files and make them available somehow.
See Check out the ptII osgi-2-0 branch for getting access to the Ptolemy II osgi-2-0 repository
Creating pom files
POM-less Tycho Builds suggests creating osgi-2-0/.mvn/extensions.xml:
<?xml version="1.0" encoding="UTF-8"?> <extensions> <extension> <groupId>org.eclipse.tycho.extras</groupId> <artifactId>tycho-pomless</artifactId> <version>0.24.0</version> </extension> </extensions>
The Eclipse Tycho Tutorial suggests:
cd osgi-2-0 mvn org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=ptolemy
This creates osgi-2-0/pom.xml and other */pom.xml files.
We then remove the */pom.xml files that were created:
rm */pom.xml
Running mvn
The Eclipse Tycho Tutorial suggests running
mvn clean verify
The tutorial states:
- "Tip: It is not recommended to use the mvn clean install command, instead you should use mvn clean verify. If you would use the install option, the build result would be installed in your local Maven repository and this can lead to build problems.
The tutorial states:
- "Warning If you try to execute this POM file, the build fail because you have not yet configured your dependencies."
If we run
mvn clean
we get
[ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: diva 11.0.0.qualifier [ERROR] Missing requirement: diva 11.0.0.qualifier requires 'package org.w3c.dom.svg 1.1.0' but it could not be found [ERROR] [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help. [ERROR] Cannot resolve dependencies of MavenProject: ptolemy:diva:11.0.0-SNAPSHOT @ /Users/cxh/src/osgi-2-0/diva/.polyglot.build.properties: See log for details -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
So the next step is to fix the dependencies.