如何理解Maven依赖关系树 [英] How to understand Maven dependency tree

查看:169
本文介绍了如何理解Maven依赖关系树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请原谅,如果这是一个转储问题,但我搜索了很多,不明白如何实际读取Maven依赖性发球台。
我知道这个命令是用来找出依赖关系,但是如何?
这是我项目中 mvn依赖关系:tree -Dverbose 的结果。

  [INFO] +  -  org.springframework:spring-core:jar:4.0.2.RELEASE:compile 
[INFO] | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] + - org.springframework:spring-web:jar:4.0.2.RELEASE:compile
[INFO ] | + - (org.springframework:spring-aop:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - org.springframework:spring-beans:jar:4.0.2.RELEASE:compile
[INFO] | | \-(org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - (org.springframework:spring-context:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | \-(org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] + - org.springframework:spring-webmvc:jar:4.0.2.RELEASE :编译
[INFO] | + - (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - (org.springframework:spring-context:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - org.springframework:spring-expression:jar:4.0.2.RELEASE:compile
[INFO] | | \-(org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | \-(org.springframework:spring-web:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] + - org.springframework:spring-context:jar:4.0.2.RELEASE :编译
[INFO] | + - (org.springframework:spring-aop:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | \-(org.springframework:spring-expression:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] + - org.springframework:spring-aop:jar:3.0.0.RC3 :编译
[INFO] | + - aopalliance:aopalliance:jar:1.0:compile
[INFO] | + - org.springframework:spring-asm:jar:3.0.0.RC3:compile
[INFO] | + - (org.springframework:spring-beans:jar:3.0.0.RC3:compile - 略去与4.0.2.RELEASE冲突)
[INFO] | \-(org.springframework:spring-core:jar:3.0.0.RC3:compile - 略去与4.0.2.RELEASE冲突)
[INFO] + - org.springframework:spring-tx:jar :4.0.2.RELEASE:compile
[INFO] | + - (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | \-(org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] + - org.springframework:spring-orm:jar:4.0.2.RELEASE :编译
[INFO] | + - (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | + - org.springframework:spring-jdbc:jar:4.0.2.RELEASE:compile
[INFO] | | + - (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | | + - (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | | \-(org.springframework:spring-tx:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] | \-(org.springframework:spring-tx:jar:4.0.2.RELEASE:compile - 略为重复)
[INFO] + - org.springframework.security:spring-security-core:jar:3.2 .2.RELEASE:compile
[INFO] | + - (aopalliance:aopalliance:jar:1.0:compile - 略为重复)
[INFO] | + - (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - 省略与3.0.0.RC3冲突)
[INFO] | + - (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | + - (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | + - (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | \-(org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] + - org.springframework.security:spring-security -web:jar:3.2.2.RELEASE:compile
[INFO] | + - (aopalliance:aopalliance:jar:1.0:compile - 略为重复)
[INFO] | + - (org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile - 省略重复)
[INFO] | + - (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | + - (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | + - (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | + - (org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | \-(org.springframework:spring-web:jar:3.2.8.RELEASE:compile - 略去与4.0.2.RELEASE冲突)
[INFO] + - org.springframework.security:spring-security -config:jar:3.2.2.RELEASE:compile
[INFO] | + - (aopalliance:aopalliance:jar:1.0:compile - 略为重复)
[INFO] | + - (org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile - 省略重复)
[INFO] | + - (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - 省略与3.0.0.RC3冲突)
[INFO] | + - (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | + - (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] | \-(org.springframework:spring-core:jar:3.2.8.RELEASE:compile - 省略与4.0.2.RELEASE冲突)
[INFO] + - javax.servlet:javax.servlet-api :jar:3.1.0:compile
[INFO] + - org.glassfish.jersey.core:jersey-server:jar:2.6:compile
[INFO] | + - org.glassfish.jersey.core:jersey-common:jar:2.6:compile
[INFO] | | + - (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - 省略重复)
[INFO] | | + - (javax.annotation:javax.annotation-api:jar:1.2:compile - 略为重复)
[INFO] | | + - org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.6:compile
[INFO] | | + - (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - 略为重复)
[INFO] | | + - (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - 略为重复)
[INFO] | | + - (org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - 略过副本)
[INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | + - org.glassfish.jersey.core:jersey-client:jar:2.6:compile
[INFO] | | + - (org.glassfish.jersey.core:jersey-common:jar:2.6:compile - 略为重复)
[INFO] | | + - (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - 省略重复)
[INFO] | | + - (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - 略为重复)
[INFO] | | + - (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - 略为重复)
[INFO] | | \-(org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - 略为重复)
[INFO] | + - javax.ws.rs:javax.ws.rs-api:jar:2.0:compile
[INFO] | + - javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | + - org.glassfish.hk2:hk2-api:jar:2.2.0:compile
[INFO] | | + - org.glassfish.hk2:hk2-utils:jar:2.2.0:compile
[INFO] | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile
[INFO] | + - org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile
[INFO] | + - org.glassfish.hk2:hk2-locator:jar:2.2.0:compile
[INFO] | | + - (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - 略为重复)
[INFO] | | + - (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile - 略为重复)
[INFO] | | + - (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - 略为重复)
[INFO] | | + - (org.glassfish.hk2:hk2-utils:jar:2.2.0:compile - 略为重复)
[INFO] | | \-(org.javassist:javassist:jar:3.18.1-GA:compile - 略去与3.15.0-GA冲突)
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] + - com.sun.jersey.contribs:jersey-spring:jar:1.18.1:compile
[INFO] | + - com.sun.jersey:jersey-servlet:jar:1.18.1:compile
[INFO] | | \- com.sun.jersey:jersey-server:jar:1.18.1:compile
[INFO] | | \- com.sun.jersey:jersey-core:jar:1.18.1:compile
[INFO] | \-(org.springframework:spring-aop:jar:3.0.0.RC3:为副本省略)
[INFO] + - commons-dbcp:commons-dbcp:jar:1.3:compile
[INFO] | \- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] + - org.hibernate:hibernate-core:jar:4.0.1.Final:compile
[INFO ] | + - commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | + - antlr:antlr:jar:2.7.7:compile
[INFO] | + - org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
[INFO] | + - dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | + - org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] | + - org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile
[INFO] | + - org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
[INFO] | \-(org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile - 略为重复)
[INFO] + - cglib:cglib:jar:2.2.2:compile
[INFO] | \- asm:asm:jar:3.3.1:compile
[INFO] + - mysql:mysql-connector-java:jar:5.1.22:compile
[INFO] + - org.hibernate :hibernate-validator:jar:4.2.0.Final:compile
[INFO] | + - (javax.validation:validation-api:jar:1.0.0.GA:compile - 省略与1.1.0.Final冲突)
[INFO] | \-(org.slf4j:slf4j-api:jar:1.6.1:compile - 与1.7.5冲突省略)
[INFO] + - com.sun.xml.bind:jaxb-xjc:jar :2.2.6:编译
[INFO] + - com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[INFO] + - javax.xml.bind:jaxb -api:jar:2.2.6:compile
[INFO] + - javax.servlet:jstl:jar:1.2:compile
[INFO] + - org.apache.tomcat:jsp-api:jar :6.0.32:提供
[INFO] | + - org.apache.tomcat:el-api:jar:6.0.32:提供
[INFO] | \- org.apache.tomcat:servlet-api:jar:6.0.32:提供
[INFO] + - log4j:log4j:jar:1.2.15:compile
[INFO] | \- javax.mail:mail:jar:1.4:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] + - org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] + - org.slf4j :slf4j-simple:jar:1.6.4:compile
[INFO] | \-(org.slf4j:slf4j-api:jar:1.6.4:compile - 省略与1.7.5冲突)
[INFO] \- org.slf4j:slf4j-log4j12:jar:1.7。 5:编译
[INFO] + - (org.slf4j:slf4j-api:jar:1.7.5:compile - 略为重复)
[INFO] \-(log4j:log4j:jar: 1.2.17:编译 - 省略与1.2.15的冲突)
[INFO] ----------------------------- -------------------------------------------
[信息] BUILD SUCCESS
[INFO] ----------------------------------------- -------------------------------
[INFO]总时间:6.667 s
[INFO]完成于:2014-03-12T14:37:46 + 01:00
[INFO] Final Memory:9M / 16M
[INFO] -------------- -------------------------------------------------- --------

在这个问题中标记为解决方案:IncompatibleClassChangeError:class ClassMetadataReadingVisitor具有接口ClassVisitor作为超类
如何检查依赖的jar和冲突?

解决方案

它是一个依赖树。列表中的内容是他们父项的依赖。

  [INFO] +  -  org.springframework:spring-core:jar: 4.0.2.RELEASE:compile 
[INFO] | \- commons-logging:commons-logging:jar:1.1.3:compile

Spring-core取决于commons-logging。

  [INFO] +  -  org.glassfish.jersey.core:jersey-server:jar:2.6 :编译
[INFO] | + - org.glassfish.jersey.core:jersey-common:jar:2.6:compile
[INFO] | | + - (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - 省略重复)
[INFO] | | + - (javax.annotation:javax.annotation-api:jar:1.2:compile - 略为重复)

泽西服务器取决于平纹针。泽西通常取决于rs-api,annotation-api等。


Please excuse if this a dump question but I have searched a lot and couldn't understand how to actually read Maven Dependency tee. I know this command is used to figure out the dependencies but how? This is the result of mvn dependency:tree -Dverbose in my project.

[INFO] +- org.springframework:spring-core:jar:4.0.2.RELEASE:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] +- org.springframework:spring-web:jar:4.0.2.RELEASE:compile
[INFO] |  +- (org.springframework:spring-aop:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- org.springframework:spring-beans:jar:4.0.2.RELEASE:compile
[INFO] |  |  \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-context:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] +- org.springframework:spring-webmvc:jar:4.0.2.RELEASE:compile
[INFO] |  +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-context:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- org.springframework:spring-expression:jar:4.0.2.RELEASE:compile
[INFO] |  |  \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  \- (org.springframework:spring-web:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] +- org.springframework:spring-context:jar:4.0.2.RELEASE:compile
[INFO] |  +- (org.springframework:spring-aop:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  \- (org.springframework:spring-expression:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] +- org.springframework:spring-aop:jar:3.0.0.RC3:compile
[INFO] |  +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  +- org.springframework:spring-asm:jar:3.0.0.RC3:compile
[INFO] |  +- (org.springframework:spring-beans:jar:3.0.0.RC3:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  \- (org.springframework:spring-core:jar:3.0.0.RC3:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] +- org.springframework:spring-tx:jar:4.0.2.RELEASE:compile
[INFO] |  +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  \- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] +- org.springframework:spring-orm:jar:4.0.2.RELEASE:compile
[INFO] |  +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- org.springframework:spring-jdbc:jar:4.0.2.RELEASE:compile
[INFO] |  |  +- (org.springframework:spring-beans:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  |  +- (org.springframework:spring-core:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  |  \- (org.springframework:spring-tx:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] |  \- (org.springframework:spring-tx:jar:4.0.2.RELEASE:compile - omitted for duplicate)
[INFO] +- org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile
[INFO] |  +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.0.0.RC3)
[INFO] |  +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  \- (org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] +- org.springframework.security:spring-security-web:jar:3.2.2.RELEASE:compile
[INFO] |  +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
[INFO] |  +- (org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  +- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  +- (org.springframework:spring-expression:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  \- (org.springframework:spring-web:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] +- org.springframework.security:spring-security-config:jar:3.2.2.RELEASE:compile
[INFO] |  +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
[INFO] |  +- (org.springframework.security:spring-security-core:jar:3.2.2.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-aop:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.0.0.RC3)
[INFO] |  +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  +- (org.springframework:spring-context:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] |  \- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 4.0.2.RELEASE)
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.6:compile
[INFO] |  +- org.glassfish.jersey.core:jersey-common:jar:2.6:compile
[INFO] |  |  +- (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - omitted for duplicate)
[INFO] |  |  +- (javax.annotation:javax.annotation-api:jar:1.2:compile - omitted for duplicate)
[INFO] |  |  +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.6:compile
[INFO] |  |  +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] |  +- org.glassfish.jersey.core:jersey-client:jar:2.6:compile
[INFO] |  |  +- (org.glassfish.jersey.core:jersey-common:jar:2.6:compile - omitted for duplicate)
[INFO] |  |  +- (javax.ws.rs:javax.ws.rs-api:jar:2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  \- (org.glassfish.hk2:hk2-locator:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile
[INFO] |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] |  +- org.glassfish.hk2:hk2-api:jar:2.2.0:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-utils:jar:2.2.0:compile
[INFO] |  |  \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile
[INFO] |  +- org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile
[INFO] |  +- org.glassfish.hk2:hk2-locator:jar:2.2.0:compile
[INFO] |  |  +- (org.glassfish.hk2.external:javax.inject:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2.external:aopalliance-repackaged:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2:hk2-api:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  +- (org.glassfish.hk2:hk2-utils:jar:2.2.0:compile - omitted for duplicate)
[INFO] |  |  \- (org.javassist:javassist:jar:3.18.1-GA:compile - omitted for conflict with 3.15.0-GA)
[INFO] |  \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- com.sun.jersey.contribs:jersey-spring:jar:1.18.1:compile
[INFO] |  +- com.sun.jersey:jersey-servlet:jar:1.18.1:compile
[INFO] |  |  \- com.sun.jersey:jersey-server:jar:1.18.1:compile
[INFO] |  |     \- com.sun.jersey:jersey-core:jar:1.18.1:compile
[INFO] |  \- (org.springframework:spring-aop:jar:3.0.0.RC3:compile - omitted for duplicate)
[INFO] +- commons-dbcp:commons-dbcp:jar:1.3:compile
[INFO] |  \- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] +- org.hibernate:hibernate-core:jar:4.0.1.Final:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] |  +- antlr:antlr:jar:2.7.7:compile
[INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
[INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] |  +- org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile
[INFO] |  +- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] |  \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
[INFO] |     \- (org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile - omitted for duplicate)
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] |  \- asm:asm:jar:3.3.1:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.22:compile
[INFO] +- org.hibernate:hibernate-validator:jar:4.2.0.Final:compile
[INFO] |  +- (javax.validation:validation-api:jar:1.0.0.GA:compile - omitted for conflict with 1.1.0.Final)
[INFO] |  \- (org.slf4j:slf4j-api:jar:1.6.1:compile - omitted for conflict with 1.7.5)
[INFO] +- com.sun.xml.bind:jaxb-xjc:jar:2.2.6:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[INFO] +- javax.xml.bind:jaxb-api:jar:2.2.6:compile
[INFO] +- javax.servlet:jstl:jar:1.2:compile
[INFO] +- org.apache.tomcat:jsp-api:jar:6.0.32:provided
[INFO] |  +- org.apache.tomcat:el-api:jar:6.0.32:provided
[INFO] |  \- org.apache.tomcat:servlet-api:jar:6.0.32:provided
[INFO] +- log4j:log4j:jar:1.2.15:compile
[INFO] |  \- javax.mail:mail:jar:1.4:compile
[INFO] |     \- javax.activation:activation:jar:1.1:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] +- org.slf4j:slf4j-simple:jar:1.6.4:compile
[INFO] |  \- (org.slf4j:slf4j-api:jar:1.6.4:compile - omitted for conflict with 1.7.5)
[INFO] \- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO]    +- (org.slf4j:slf4j-api:jar:1.7.5:compile - omitted for duplicate)
[INFO]    \- (log4j:log4j:jar:1.2.17:compile - omitted for conflict with 1.2.15)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.667 s
[INFO] Finished at: 2014-03-12T14:37:46+01:00
[INFO] Final Memory: 9M/16M
[INFO] ------------------------------------------------------------------------

As marked as solution in this question: IncompatibleClassChangeError: class ClassMetadataReadingVisitor has interface ClassVisitor as super class how can I check for the dependent jars and conflicts?

解决方案

... It's a dependency tree. The things below a listing are dependencies of their parent.

[INFO] +- org.springframework:spring-core:jar:4.0.2.RELEASE:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1.3:compile

Spring-core depends on commons-logging.

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

Jersey-server depends on jersey-common. Jersey-common depends on rs-api, annotation-api, etc.

这篇关于如何理解Maven依赖关系树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆