When two dependencies of your Maven project introduce the same transitive dependency with different versions, which one(s) will be included in the dependency list for your project?

  •  the dependency with the higher version
  •  the transitive dependency that comes from the dependency listed first in the pom.xml file
  •  the transitive dependency that comes from the dependency listed last in the pom.xml file
  •  the transitive dependency version of the artifact that is closest to your project

Leave a Reply

Your email address will not be published. Required fields are marked *