Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The following graph
POM |->a 2.0 compile |-->b 2.0 compile |->b 1.0 test
will be mediated to
POM |->a 2.0 compile |->b 1.0 test
The test dependency on b will make the transitive application dependency on b disappear. Maven should understand that the application dependency on b in version 2.0 is part of the application classpath and that the test dependency on b in version 1.0 is part of the test classpath only (overriding the application classpath). If someone adds a dependency on a project like that, the test dependency will disappear because the test scope is not transitive so that a "consuming" project gets a different application classpath than the project itself.
Attachments
Attachments
Issue Links
- causes
-
MDEP-812 Error opening zip file or JAR manifest missing : ${groupId:artifactId:jar}
- Reopened
-
MDEP-791 Non-test scoped and transitive dependencies in compile scope
- Closed
- is blocked by
-
MNG-6056 Implement Feature Toggle Module to handle Feature Toggles
- Closed
- is related to
-
MNG-6224 Dependency version from test scope leaks into compile scope
- Open
-
MNG-7852 Use all the versions for dependency resolution rather than "nearest first" or "declared first"
- Open
-
MNG-4156 Local test scope shouldn't override transitive compile scope
- Reopened
- relates to
-
MRESOLVER-391 Scope mediation improvements
- Open
-
MDEP-791 Non-test scoped and transitive dependencies in compile scope
- Closed
- supercedes
-
MNG-5988 Dependency mediation should prioritize transitive dependencies based on scope.
- Reopened