Community
Participate
Working Groups
Build Identifier: I have an eclipse-test-plugin with POM-dependencies (pomDependencies consider) as follows: ... <dependency> <groupId>ch.dummy</groupId> <artifactId>common</artifactId> </dependency> <dependency> <groupId>ch.dummy</groupId> <artifactId>common</artifactId> <classifier>tests</classifier> </dependency> ... It looks like tycho does not honor the classifier element as the latter dependency overrides the first one. This leads to compilation errors as the first dependency is not on the classpath. A workaround was to define the first dependency as extraClasspathElement for the tycho-compiler-plugin. But as soon as it gets to the tycho-surefire-plugin the dependency is missing from the test runtime. I'm attaching a test project: 1) mvn install -Pcommon 2) mvn install -Pclient Reproducible: Always
Created attachment 209485 [details] demo-project Steps to reproduce: 1) mvn install -Pcommon 2) mvn install -Pclient
no, no workaround I can think of
we have seen the same problem with pomDependency=consider on an eclipse-repository project. instead of assembling the sources jar, the bundle jar is assembled, probably because the classifier is ignored. more interestingly, switching back to eclipse-update-site works around the problem so this seems to be eclipse-repository specific sample sources: http://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/pom.xml
(In reply to comment #1) > Created attachment 209485 [details] > demo-project > > Steps to reproduce: > > 1) mvn install -Pcommon > 2) mvn install -Pclient the attached example is invalid. module common produces two bundle jars with the same Bundle-SymbolicName: common Also, both bundles export the same package "ch.dummy" (split package) Thus Require-Bundle: common is ambiguous and will resolve to whatever wins first. Also, Import-Package: ch.dummy would be ambiguous in this example and resolution would be indeterministic as well. however there is a real issue with pomDependencies and classifiers which is demonstrated by the Egit example in comment#3 I am preparing a patch for this issue.
http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=c8d6d5ca83d0777e452f31774d8672e19bf8dc6d
*** Bug 373117 has been marked as a duplicate of this bug. ***