java – 如何理解Maven依赖关系树

前端之家收集整理的这篇文章主要介绍了java – 如何理解Maven依赖关系树前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
请原谅,如果这是一个转储问题,但我搜索了很多,不明白如何实际读取Maven依赖性发球台.
我知道这个命令是用来弄清依赖关系的,但是如何呢?
这是mvn依赖的结果:tree-dverbose在我的项目中.
  1. [INFO] +- org.springframework:spring-core:jar:4.0.2.RELEASE:compile
  2. [INFO] | \- commons-logging:commons-logging:jar:1.1.3:compile
  3. [INFO] +- org.springframework:spring-web:jar:4.0.2.RELEASE:compile
  4. [INFO] | +- (org.springframework:spring-aop:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  5. [INFO] | +- org.springframework:spring-beans:jar:4.0.2.RELEASE:compile
  6. [INFO] | | \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  7. [INFO] | +- (org.springframework:spring-context:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  8. [INFO] | \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  9. [INFO] +- org.springframework:spring-webmvc:jar:4.0.2.RELEASE:compile
  10. [INFO] | +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  11. [INFO] | +- (org.springframework:spring-context:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  12. [INFO] | +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  13. [INFO] | +- org.springframework:spring-expression:jar:4.0.2.RELEASE:compile
  14. [INFO] | | \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  15. [INFO] | \- (org.springframework:spring-web:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  16. [INFO] +- org.springframework:spring-context:jar:4.0.2.RELEASE:compile
  17. [INFO] | +- (org.springframework:spring-aop:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  18. [INFO] | +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  19. [INFO] | +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  20. [INFO] | \- (org.springframework:spring-expression:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  21. [INFO] +- org.springframework:spring-aop:jar:3.0.0.RC3:compile
  22. [INFO] | +- aopalliance:aopalliance:jar:1.0:compile
  23. [INFO] | +- org.springframework:spring-asm:jar:3.0.0.RC3:compile
  24. [INFO] | +- (org.springframework:spring-beans:jar:3.0.0.RC3:compile - omitted for conflict with 4.0.2.RELEASE)
  25. [INFO] | \- (org.springframework:spring-core:jar:3.0.0.RC3:compile - omitted for conflict with 4.0.2.RELEASE)
  26. [INFO] +- org.springframework:spring-tx:jar:4.0.2.RELEASE:compile
  27. [INFO] | +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  28. [INFO] | \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  29. [INFO] +- org.springframework:spring-orm:jar:4.0.2.RELEASE:compile
  30. [INFO] | +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  31. [INFO] | +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  32. [INFO] | +- org.springframework:spring-jdbc:jar:4.0.2.RELEASE:compile
  33. [INFO] | | +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  34. [INFO] | | +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  35. [INFO] | | \- (org.springframework:spring-tx:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  36. [INFO] | \- (org.springframework:spring-tx:jar:4.0.2.RELEASE:compile - omitted for duplicate)
  37. [INFO] +- org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile
  38. [INFO] | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
  39. [INFO] | +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.0.0.RC3)
  40. [INFO] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  41. [INFO] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  42. [INFO] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  43. [INFO] | \- (org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  44. [INFO] +- org.springframework.security:spring-security-web:jar:3.2.2.RELEASE:compile
  45. [INFO] | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
  46. [INFO] | +- (org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile - omitted for duplicate)
  47. [INFO] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  48. [INFO] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  49. [INFO] | +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  50. [INFO] | +- (org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  51. [INFO] | \- (org.springframework:spring-web:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  52. [INFO] +- org.springframework.security:spring-security-config:jar:3.2.2.RELEASE:compile
  53. [INFO] | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
  54. [INFO] | +- (org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile - omitted for duplicate)
  55. [INFO] | +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.0.0.RC3)
  56. [INFO] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  57. [INFO] | +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  58. [INFO] | \- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
  59. [INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
  60. [INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.6:compile
  61. [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.6:compile
  62. [INFO] | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - omitted for duplicate)
  63. [INFO] | | +- (javax.annotation:javax.annotation-api:jar:1.2:compile - omitted for duplicate)
  64. [INFO] | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.6:compile
  65. [INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)
  66. [INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)
  67. [INFO] | | +- (org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - omitted for duplicate)
  68. [INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
  69. [INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.6:compile
  70. [INFO] | | +- (org.glassfish.jersey.core:jersey-common:jar:2.6:compile - omitted for duplicate)
  71. [INFO] | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - omitted for duplicate)
  72. [INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)
  73. [INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)
  74. [INFO] | | \- (org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - omitted for duplicate)
  75. [INFO] | +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile
  76. [INFO] | +- javax.annotation:javax.annotation-api:jar:1.2:compile
  77. [INFO] | +- org.glassfish.hk2:hk2-api:jar:2.2.0:compile
  78. [INFO] | | +- org.glassfish.hk2:hk2-utils:jar:2.2.0:compile
  79. [INFO] | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile
  80. [INFO] | +- org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile
  81. [INFO] | +- org.glassfish.hk2:hk2-locator:jar:2.2.0:compile
  82. [INFO] | | +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)
  83. [INFO] | | +- (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile - omitted for duplicate)
  84. [INFO] | | +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)
  85. [INFO] | | +- (org.glassfish.hk2:hk2-utils:jar:2.2.0:compile - omitted for duplicate)
  86. [INFO] | | \- (org.javassist:javassist:jar:3.18.1-GA:compile - omitted for conflict with 3.15.0-GA)
  87. [INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
  88. [INFO] +- com.sun.jersey.contribs:jersey-spring:jar:1.18.1:compile
  89. [INFO] | +- com.sun.jersey:jersey-servlet:jar:1.18.1:compile
  90. [INFO] | | \- com.sun.jersey:jersey-server:jar:1.18.1:compile
  91. [INFO] | | \- com.sun.jersey:jersey-core:jar:1.18.1:compile
  92. [INFO] | \- (org.springframework:spring-aop:jar:3.0.0.RC3:compile - omitted for duplicate)
  93. [INFO] +- commons-dbcp:commons-dbcp:jar:1.3:compile
  94. [INFO] | \- commons-pool:commons-pool:jar:1.5.4:compile
  95. [INFO] +- org.hibernate:hibernate-core:jar:4.0.1.Final:compile
  96. [INFO] | +- commons-collections:commons-collections:jar:3.2.1:compile
  97. [INFO] | +- antlr:antlr:jar:2.7.7:compile
  98. [INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
  99. [INFO] | +- dom4j:dom4j:jar:1.6.1:compile
  100. [INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
  101. [INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
  102. [INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile
  103. [INFO] | +- org.javassist:javassist:jar:3.15.0-GA:compile
  104. [INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
  105. [INFO] | \- (org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile - omitted for duplicate)
  106. [INFO] +- cglib:cglib:jar:2.2.2:compile
  107. [INFO] | \- asm:asm:jar:3.3.1:compile
  108. [INFO] +- MysqL:MysqL-connector-java:jar:5.1.22:compile
  109. [INFO] +- org.hibernate:hibernate-validator:jar:4.2.0.Final:compile
  110. [INFO] | +- (javax.validation:validation-api:jar:1.0.0.GA:compile - omitted for conflict with 1.1.0.Final)
  111. [INFO] | \- (org.slf4j:slf4j-api:jar:1.6.1:compile - omitted for conflict with 1.7.5)
  112. [INFO] +- com.sun.xml.bind:jaxb-xjc:jar:2.2.6:compile
  113. [INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
  114. [INFO] +- javax.xml.bind:jaxb-api:jar:2.2.6:compile
  115. [INFO] +- javax.servlet:jstl:jar:1.2:compile
  116. [INFO] +- org.apache.tomcat:jsp-api:jar:6.0.32:provided
  117. [INFO] | +- org.apache.tomcat:el-api:jar:6.0.32:provided
  118. [INFO] | \- org.apache.tomcat:servlet-api:jar:6.0.32:provided
  119. [INFO] +- log4j:log4j:jar:1.2.15:compile
  120. [INFO] | \- javax.mail:mail:jar:1.4:compile
  121. [INFO] | \- javax.activation:activation:jar:1.1:compile
  122. [INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
  123. [INFO] +- org.slf4j:slf4j-simple:jar:1.6.4:compile
  124. [INFO] | \- (org.slf4j:slf4j-api:jar:1.6.4:compile - omitted for conflict with 1.7.5)
  125. [INFO] \- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
  126. [INFO] +- (org.slf4j:slf4j-api:jar:1.7.5:compile - omitted for duplicate)
  127. [INFO] \- (log4j:log4j:jar:1.2.17:compile - omitted for conflict with 1.2.15)
  128. [INFO] ------------------------------------------------------------------------
  129. [INFO] BUILD SUCCESS
  130. [INFO] ------------------------------------------------------------------------
  131. [INFO] Total time: 6.667 s
  132. [INFO] Finished at: 2014-03-12T14:37:46+01:00
  133. [INFO] Final Memory: 9M/16M
  134. [INFO] ------------------------------------------------------------------------

在这个问题中标注为解决方案:IncompatibleClassChangeError: class ClassMetadataReadingVisitor has interface ClassVisitor as super class
如何检查相关罐子和冲突?

解决方法

…这是一个依赖树.列表下方的内容是其父级的依赖关系.
  1. [INFO] +- org.springframework:spring-core:jar:4.0.2.RELEASE:compile
  2. [INFO] | \- commons-logging:commons-logging:jar:1.1.3:compile

Spring-core取决于commons-logging.

  1. [INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.6:compile
  2. [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.6:compile
  3. [INFO] | | +- (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - omitted for duplicate)
  4. [INFO] | | +- (javax.annotation:javax.annotation-api:jar:1.2:compile - omitted for duplicate)

泽西服务器取决于平针织衫.泽西通常取决于rs-api,注释api等

猜你在找的Java相关文章