Details
Description
I'm not sure what the support status of 2.10 is but here goes. At the least maybe this is a documentation issue and -Dverbose should just be taken with a grain of salt, or perhaps this is a test case for any future implementations.
In brief:
Running mvn -B org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose shows "omitted for duplicate" where "omitted for conflict" is expected.
I have attached a minimum pom.xml for reproducing the issue and the output from running the above command. (Output shows a warning regarding inconsistencies between Maven 2 vs 3 but I'm presuming this is an issue regardless that pertains to version 2.)
Points of note:
- These two lines are contradictory because it shows 2.10.3 as the version used for "jackson-databind" but no conflict message is emitted when it tramples 2.12.3:
- com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile
- (com.fasterxml.jackson.core:jackson-databind:jar:2.12.3:compile - omitted for duplicate)
- Hierarchy printout shows "com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile" as a dependency of "software.amazon.awssdk:sdk-core:jar:2.16.62:compile" but the pom for the former actually depends on version 2.12.3.
Other noteworthy points:
- "jackson-databind:jar:2.12.3" is three plus levels deep and first (via sts) while 2.10.3 is two and second (via java-jwt) so 2.10.3 wins by nearest-wins. (Assuming this is how it works.) The issue is only with the conflict message printout.