How to run the RCP Maven / Tycho application

To run my application on a CI server (jenkins) I am trying to create a headless assembly.

To do this, I follow the Eclipse Con Tutorial with some minor changes (using Indigo instead of Eclipse 4), which can be found here: https://github.com/jsievers/tycho-demo/tree/master/exercises

I managed to finish the first part (it was not very difficult, mvn clean install), but now I have run out of the target folder and the jar file, similar to my project: mail-1.0.0-SNAPSHOT.jar, but I am very confused since I I can not start it.

I tried java -jar mail-1.0.0-SNAPSHOT.jarthat causes the following failure:

there is no main attribute of the manifest, in mail-1.0.0-SNAPSHOT.jar

There are no further tips in the tutorial, so I'm not sure what the purpose of this step is.

+3
source share
2 answers

It seems that the file you are trying to run is just an OSGi package.

The final RCP application build artifact should be a ZIP file, not just a JAR. If you are working with tycho-demo, try looking at the tychodemo.product subproject . After installing mvn clean, you will find ZIP files such as tychodemo.product-linux.gtk.x86_64.zip in the target / products folder . Executable files are packaged in them with all the necessary dependencies (i.e. platform dependent).

To include your package in your Tycho RCP product, simply add it to pom.xml, as is done with tychodemo.bundle .

+3
source

, , , , RCP "mvn clean install", "Exercise_05_Solution"

pom.xml, tychodemo.parent, "mvn clean install" pom.xml.

, RCP Eclipse,

.../tychodemo.repository/target/products/*.zip

zip , Eclipse... , .

, , , , .

!

+1
source

All Articles