Skip to main content

Eclipse Community Forums
Forum Search:

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

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

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!

[Updated on: Thu, 19 August 2010 16:40]

Report message to a moderator

Previous Topic:Re: Gemini Blueprint 1.0.0.M1 ships
Next Topic:Building Projects by Manifest First
Goto Forum:

Current Time: Tue Apr 23 20:03:32 GMT 2019

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

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

Back to the top