[MRESOLVER-9] DefaultDependencyCollector does not correctly handle dependency management.
Resolution without MRESOLVER-9 looks like (Maven 3.3.9):
[DEBUG] org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.6:compile
[DEBUG] javax.inject:javax.inject:jar:1:provided (scope managed from compile by org.apache.maven.resolver:maven-resolver:1.1.1-SNAPSHOT)
[DEBUG] com.google.guava:guava:jar:16.0.1:compile
The 'javax.inject:javax.inject:jar:1:provided' line shows that the artifact
is in 'provided' scope. The Maven resolver without MRESOLVER-9 fixed will
incorrectly resolve that transitive provided dependency. With MRESOLVER-9 fixed,
the resolver correctly no longer resolves transitive provided dependencies. That
dependency needs to be declared directly.
1 file changed