Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Tycho » Building Projects by Manifest First
Building Projects by Manifest First [message #571193] Thu, 19 August 2010 16:39
Ganix  is currently offline Ganix Friend
Messages: 2
Registered: August 2010
Junior Member
Hello,

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!
Previous Topic:Building Projects by Manifest First
Next Topic:Offline option
Goto Forum:
  


Current Time: Sun Dec 21 22:18:24 GMT 2014

Powered by FUDForum. Page generated in 0.01845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software