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.
Difference between revisions of "Triquetrum/Ptolemy/osgi-2-0"
(Created the pom.xml file.) |
(Running mvn clean) |
||
Line 10: | Line 10: | ||
=== Creating pom files === | === Creating pom files === | ||
− | + | [https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds POM-less Tycho Builds] suggests creating osgi-2-0/.mvn/extensions.xml: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds POM-less Tycho Builds] suggests creating .mvn/extensions.xml: | + | |
<pre> | <pre> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
Line 28: | Line 22: | ||
</pre> | </pre> | ||
− | We then remove the pom.xml files that were created: | + | The [http://www.vogella.com/tutorials/EclipseTycho/article.html#maventycho_generatepom1 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 | rm */pom.xml | ||
+ | |||
+ | === Running mvn === | ||
+ | The [http://www.vogella.com/tutorials/EclipseTycho/article.html#maventycho_generatepom1 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 | ||
+ | <pre> | ||
+ | [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 | ||
+ | </pre> | ||
+ | |||
+ | So the next step is to fix the dependencies. |
Revision as of 19:03, 28 June 2016
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.