How do I read a Maven dependency tree

后端 未结 2 1800
名媛妹妹
名媛妹妹 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.

提交回复
热议问题