Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] maven-dependency-plugin and unpacked bundles

I think it is related to Eclipse-BundleShape: dir.
On my Eclipse 4.2 install, the org.eclipse.pde.build and org.eclipse.jdt.debug have the flag and I don't have org.eclipse.jst.ws.consumption installed.
I don't see the flag with org.junit but it is installed as a folder so the information may be stored in P2

Regards
Jeff



On Thu, Dec 20, 2012 at 3:20 PM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi all,

While I'm (successfully) having fun with the maven-dependency-plugin to get all my repository + transitive dependencies in one location, I'm seeing this strange behavior: Unpacked bundles are in a strange layout. Instead of having a single jar or folder for the bundle, I get as many files as jars contained in the bundle; also the inner bundle are named with a .jar.jar suffix.
I tried to run a "mvn depedency:tree" and it seems that the bundle does not exist by itself as an artifact in dependency resolution, but the inner jars are avaialble.

See the attached example project.
* Run "mvn verify" and look at content of repository/target/dependency. The org.junit is not the bundle but the inner jar, with strange name
* Run "mvn dependency:tree" from "repository", you'll read
[INFO] +- p2.eclipse-plugin:org.junit:jar:junit.jar:4.10.0.v4_10_0_v20120426-0900:system
with a "junit.jar" classifier, which is a bit stange.

Some other weird bundles with same behavior:
* org.eclipse.jdt.debug-3.7.100.v20120529-1702
* org.eclipse.jst.ws.consumption-1.0.700.v201204102147
* org.eclipse.pde.build-3.8.0.v20120523-1555

Do you have any clue on how to get those bundles as regular jars with maven-dependency-plugin?
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets   

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top