Monday, 25 June 2012

Which dependency in the hierarchy does Maven use when managing dependencies

A misconception about Maven's dependency management is that “Maven chooses the highest version” when two or more transitive dependencies disagree on the version of a given groupId and ArtifactId coordinate.

The truth is that it uses Maven resolves the version nearest to the top of the dependency tree in the end. To view this dependency tree type:

 mvn dependency:tree

resource: Maven dependency management

No comments:

Post a Comment