Maven direct and transitive dependencies resolution -
artifact_a has both direct dependency , transitive dependency on artifact_b within same scope.
does direct dependency
precede transitive dependency
, or 1 of higher version
prevail?
is there reference better illustration on maven dependencies resolution
chapter maven reference manual - project dependencies?
the dependency-resolution mechanism can complicated. if there's managed version (dependencymanagement
), take precedence. speaking, maven use highest-requested version satisfies of requirements (for example, servlet package might require [2.4,3.0)
while package requires 2.5
, maven use 2.5). if maven can't find such version (in above sample, if second package required [3.0,4.0)
), produce error.
if have specific issue you're running into, feel free post question details.
Comments
Post a Comment