How do I read a Maven dependency tree

后端 未结 2 1789
名媛妹妹
名媛妹妹 2020-12-04 21:11

I have servlet-api version 2.5 as provided scope in pom.xml. Here is part of the dependency:tree output of my project. What does \"version managed from 2.3; scope managed fr

相关标签:
2条回答
  • 2020-12-04 21:40

    The message basically means that the version of servlet-api would have transitively been 2.3 (so basically in commons-logging's pom they define servlet-api with version 2.3), but that version 2.5 was specifically asked for in your project, so that is what was used.

    Same goes for the scope. In commons-logging's pom it is defined with scope compile, but you have it defined with scope provided, so again that is the scope that was used.

    0 讨论(0)
  • 2020-12-04 22:02

    It means that your project has overridden the version and scope from other dependencies.

    0 讨论(0)
提交回复
热议问题