|Building Projects by Manifest First [message #571193]
||Thu, 19 August 2010 12:39
Registered: August 2010
currently we have a number of projects in eclipse to build osgi bundles.
Some projects are have java sourcecode, and some are just wrapper projects created by "File -> Import -> Plug-Ins and Fragments" and contain a single .jar file with binary .classes.
The binary jars imported are already osgi bundles, containing a manifest.mf.
I'm not sure if this is the right way to set up the dependencies in eclipse, but it works just with the eclipse build, and the dependencies are resolved fine.
Now, when i use tycho to generate pom files with:
mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms -DgroupId=net.domain -Dtycho.targetPlatform=/home/me/eclipse
and then run
mvn clean install -Dtycho.targetPlatform=/home/me/eclipse
the build starts and resolves all the dependencies according to the eclipse setup, but then fails when compiling the first source project.
The reason for this is the following:
The source project imports packages from one binary project. Fine.
But the jar file produced in the target folde within the binary project is missing the classes from the imported jar file. There is only the Manifest inside the generated jar.
So when building the binary projects, there is a difference between tycho and eclipse.
Eclipse includes the classes folder in the jar, and tycho drops it.
Can someone help in understanding if this is a bug in tycho, or if this approach to build with tycho is wrong?
Thanks a lot!
Powered by FUDForum
. Page generated in 0.01849 seconds