Skip to main content



      Home
Home » Archived » Tycho » Building Projects by Manifest First
Building Projects by Manifest First [message #554011] Thu, 19 August 2010 12:39
Eclipse UserFriend
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!


[Updated on: Thu, 19 August 2010 12:40] by Moderator

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


Current Time: Mon Jul 07 03:05:34 EDT 2025

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

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

Back to the top