Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0
-
None
-
None
Description
Specifying a test-jar dependency clobbers any transitive dependency on
that project.
eg
projectA publishes jar and test-jar
projectB depends on projectA.jar (scope compile)
projectC depends on projectB.jar (scope compile) and projectA.test-jar
(scope test)
In projectC, the test scoped projectA.test-jar dependency effectively
clobbers the compile scoped transitive dependency on projectA.jar. ie
projectA.jar is no longer in projectC's compile scope dependency list.
If I explicitly specify the projectA.jar compile dependency in the projectC POM it is resolved correctly.
There are currently other issues with test-jar dependency
resolution that may be related.
MNG-1378 <http://jira.codehaus.org/browse/MNG-1378>
According to Brett "It shouldn't be clobbered, as
the conflict ID for a dependency is group:artifact:type:classifier" but this isn't what I am seeing.
Attachments
Attachments
Issue Links
- duplicates
-
MNG-1895 Dependencies in two paths are not added to resolution when scope needs to be updated in the nearest due to any of nearest parents
- Closed
- is duplicated by
-
MNG-1823 dependencies with classifier mask transitive dependencies of same dependency without classifier
- Closed
- is related to
-
MNG-1571 Wrong calculation of transient dependecies if artifact is referenced from different scopes
- Closed