Create JavaFX OSGi Application and package with tycho [message #1809204] |
Thu, 11 July 2019 13:13 |
Nicolas De Amicis Messages: 19 Registered: February 2014 |
Junior Member |
|
|
Hello, I have create a sample project "JavaFX OSGi Application" for evaluation. I have 4 projects:
- test.app
- test.app.feature
- test.app.product
- test.app.releng
After some modifications (due to outdated wizard, ...) I can run my sample on eclipse with the corresponding launcher.
Now I would like to build the sample with maven-tycho and create a "ready to use" bundle for linux.
I ran mvn clean package on the project test.app.releng, and I see the output jar files and the xml files (p2artifacts.xml and p2content.xml). After that I ran mvn clean package on the project test.app.product and I have this error:
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: ch.test:ch.test.app.product:1.0.0-SNAPSHOT @ /home/deamicisn/workspace/ch.test.app.product/pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2019-06/
[INFO] Adding repository http://download.eclipse.org/releases/2019-06
[INFO] Fetching p2.index from https://download.eclipse.org/technology/epp/packages/2019-06/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2019-06/201906191000/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2019-06/201906191000/
[INFO] Adding repository http://download.eclipse.org/efxclipse/runtime-nightly/site
[INFO] Adding repository http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/addons/nightly/site
[INFO] Resolving dependencies of MavenProject: ch.test:ch.test.app.product:1.0.0-SNAPSHOT @ /home/deamicisn/workspace/ch.test.app.product/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: ch.test.app.product 1.0.0
[ERROR] Missing requirement: ch.test.app.product 1.0.0 requires 'org.eclipse.equinox.p2.iu; ch.test.app.feature.feature.group [1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]' 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: ch.test:ch.novelis.test.app.product:1.0.0-SNAPSHOT @ /home/deamicisn/workspace/ch.test.app.product/pom.xml: 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
I specify some points:
- The project needs to run with java 8
- I'm a newbie in OSGi and equinox
- I read a lot of forums and docs on the subject, but I haven't found how to build an application or an example to run with native launcher or the documentation is partial or outdated
How to build with maven and run (outside eclipse) a sample program?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04717 seconds