Question: 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?

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

Answer: The correct answer of the above question is Option D:the transitive dependency version of the artifact that is closest to your project