使用”-Dverbose”选项来详细展示”mvn dependency:tree”命令的执行结果
完全记录下来。
当应用程序运行时使用旧版本的Jar,或者在运行时被指责时。
如果即使想要查找,由于依赖关系太深,无法通过mvn dependency:tree或Eclipse的Dependency Hierarchy显示。
通常在这种情况下,即使显示了Effective POM,但内容太大以至于最终无法跟踪Dependencies。
可以尝试使用mvn dependency:tree -Dverbose命令。
使用( )将显示在通常不显示的依存性上,只需打上一个就可以。
以下是一个使用例子。
这里是一个使用的示例。
例如,在某个研讨会上使用的SpringBoot应用程序,如果使用mvn dependency:tree命令
[INFO] sample.spring:spring-eureka:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:4.2.6.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:4.2.6.RELEASE:compile
[INFO] | | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +- org.springframework:spring-beans:jar:4.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:4.2.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:1.3.5.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.1.7:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.1.7:compile
[INFO] | | +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | | +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] | | \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[INFO] | +- org.springframework:spring-core:jar:4.2.6.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.16:runtime
[INFO] +- org.springframework.cloud:spring-cloud-starter-eureka-server:jar:1.1.0.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:1.1.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:1.1.0.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:4.0.4.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:1.1.0.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.1.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.47:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.47:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-eureka-server:jar:1.1.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-web:jar:1.3.5.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.3.5.RELEASE:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.33:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.33:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.33:compile
[INFO] | | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.33:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-validation:jar:1.3.5.RELEASE:compile
[INFO] | | | | \- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] | | | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | | | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | | | | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] | | | +- org.springframework:spring-web:jar:4.2.6.RELEASE:compile
[INFO] | | | \- org.springframework:spring-webmvc:jar:4.2.6.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-actuator:jar:1.3.5.RELEASE:compile
[INFO] | | | \- org.springframework.boot:spring-boot-actuator:jar:1.3.5.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-freemarker:jar:1.3.5.RELEASE:compile
[INFO] | | | +- org.freemarker:freemarker:jar:2.3.23:compile
[INFO] | | | \- org.springframework:spring-context-support:jar:4.2.6.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-core:jar:1.1.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:1.1.0.RELEASE:compile
[INFO] | | +- com.netflix.eureka:eureka-client:jar:1.4.6:compile
[INFO] | | | +- org.codehaus.jettison:jettison:jar:1.3.7:runtime
[INFO] | | | | \- stax:stax-api:jar:1.0.1:runtime
[INFO] | | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:runtime
[INFO] | | | +- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | | +- com.netflix.servo:servo-core:jar:0.10.1:runtime
[INFO] | | | | \- com.netflix.servo:servo-internal:jar:0.10.1:runtime
[INFO] | | | +- com.sun.jersey:jersey-core:jar:1.19.1:compile
[INFO] | | | +- com.sun.jersey:jersey-client:jar:1.19.1:runtime
[INFO] | | | +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:runtime
[INFO] | | | +- org.apache.httpcomponents:httpclient:jar:4.5.2:runtime
[INFO] | | | | +- org.apache.httpcomponents:httpcore:jar:4.4.4:runtime
[INFO] | | | | \- commons-codec:commons-codec:jar:1.9:runtime
[INFO] | | | +- com.google.inject:guice:jar:4.0:runtime
[INFO] | | | \- com.netflix.governator:governator-api:jar:1.12.10:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19.1:compile
[INFO] | | +- com.sun.jersey:jersey-server:jar:1.19.1:compile
[INFO] | | +- com.netflix.eureka:eureka-core:jar:1.4.6:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-core:jar:1.10.30:runtime
[INFO] | | | +- com.amazonaws:aws-java-sdk-ec2:jar:1.10.30:runtime
[INFO] | | | +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.9.3:runtime
[INFO] | | | +- com.amazonaws:aws-java-sdk-sts:jar:1.9.3:runtime
[INFO] | | | +- com.amazonaws:aws-java-sdk-route53:jar:1.9.3:runtime
[INFO] | | | +- com.netflix.governator:governator:jar:1.12.10:runtime
[INFO] | | | | +- com.netflix.governator:governator-core:jar:1.12.10:runtime
[INFO] | | | | \- org.ow2.asm:asm:jar:5.0.4:runtime
[INFO] | | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:runtime
[INFO] | | | \- javax.xml.stream:stax-api:jar:1.0-2:runtime
[INFO] | | +- com.netflix.archaius:archaius-core:jar:0.7.4:compile
[INFO] | | | \- com.google.code.findbugs:jsr305:jar:3.0.1:runtime
[INFO] | | +- javax.inject:javax.inject:jar:1:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.6.6:compile
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.6.6:compile
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | \- com.thoughtworks.xstream:xstream:jar:1.4.2:compile
[INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-archaius:jar:1.1.0.RELEASE:compile
[INFO] | | +- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | | | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile
[INFO] | | \- com.google.guava:guava:jar:18.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-ribbon:jar:1.1.0.RELEASE:compile
[INFO] | | +- com.netflix.ribbon:ribbon:jar:2.1.5:compile
[INFO] | | | +- com.netflix.ribbon:ribbon-transport:jar:2.1.5:runtime
[INFO] | | | | +- io.reactivex:rxnetty-contexts:jar:0.4.9:runtime
[INFO] | | | | \- io.reactivex:rxnetty-servo:jar:0.4.9:runtime
[INFO] | | | +- com.netflix.hystrix:hystrix-core:jar:1.5.2:runtime
[INFO] | | | | \- org.hdrhistogram:HdrHistogram:jar:2.1.7:runtime
[INFO] | | | \- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | | | +- io.netty:netty-codec-http:jar:4.0.27.Final:runtime
[INFO] | | | | +- io.netty:netty-codec:jar:4.0.27.Final:runtime
[INFO] | | | | \- io.netty:netty-handler:jar:4.0.27.Final:runtime
[INFO] | | | \- io.netty:netty-transport-native-epoll:jar:4.0.27.Final:runtime
[INFO] | | | +- io.netty:netty-common:jar:4.0.27.Final:runtime
[INFO] | | | +- io.netty:netty-buffer:jar:4.0.27.Final:runtime
[INFO] | | | \- io.netty:netty-transport:jar:4.0.27.Final:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-core:jar:2.1.5:compile
[INFO] | | +- com.netflix.ribbon:ribbon-httpclient:jar:2.1.5:compile
[INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:runtime
[INFO] | | | \- com.netflix.netflix-commons:netflix-commons-util:jar:0.1.1:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-loadbalancer:jar:2.1.5:compile
[INFO] | | | \- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] | | \- io.reactivex:rxjava:jar:1.1.5:compile
[INFO] | \- com.netflix.ribbon:ribbon-eureka:jar:2.1.5:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] \- org.springframework.boot:spring-boot-starter-test:jar:1.3.5.RELEASE:test
[INFO] +- junit:junit:jar:4.12:test
[INFO] +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] \- org.springframework:spring-test:jar:4.2.6.RELEASE:test
当执行”mvn dependency:tree -Dverbose”时,虽然已经有很多选项了。
[INFO]sample.spring:spring-eureka:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile
[INFO] | | +- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | \- org.springframework:spring-context:jar:4.2.6.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:4.2.6.RELEASE:compile
[INFO] | | | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework:spring-beans:jar:4.2.6.RELEASE:compile
[INFO] | | | \- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | \- org.springframework:spring-expression:jar:4.2.6.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.3.5.RELEASE:compile
[INFO] | | \- (org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:1.3.5.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.1.7:compile
[INFO] | | | +- ch.qos.logback:logback-core:jar:1.1.7:compile
[INFO] | | | \- org.slf4j:slf4j-api:jar:1.7.21:compile (version managed from 1.7.20)
[INFO] | | +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.21:compile - version managed from 1.7.20; omitted for duplicate)
[INFO] | | +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.21:compile - version managed from 1.7.20; omitted for duplicate)
[INFO] | | \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.21:compile - version managed from 1.7.20; omitted for duplicate)
[INFO] | +- org.springframework:spring-core:jar:4.2.6.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.16:runtime
[INFO] +- org.springframework.cloud:spring-cloud-starter-eureka-server:jar:1.1.0.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:1.1.0.RELEASE:compile
[INFO] | | +- (org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile - version managed from 1.3.4.RELEASE; omitted for duplicate)
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:1.1.0.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:4.0.4.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:1.1.0.RELEASE:compile
[INFO] | | | \- (org.springframework.security:spring-security-crypto:jar:4.0.4.RELEASE:compile - omitted for duplicate)
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.1.RELEASE:compile
[INFO] | | +- (org.springframework.security:spring-security-crypto:jar:4.0.4.RELEASE:compile - version managed from 3.2.7.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - version managed from 4.1.6.RELEASE; omitted for duplicate)
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.47:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.47:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-eureka-server:jar:1.1.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-web:jar:1.3.5.RELEASE:compile
[INFO] | | | +- (org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile - version managed from 1.3.4.RELEASE; omitted for duplicate)
[INFO] | | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.3.5.RELEASE:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.33:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.33:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.33:compile
[INFO] | | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.33:compile
[INFO] | | | | \- (org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.33:compile - omitted for duplicate)
[INFO] | | | +- org.springframework.boot:spring-boot-starter-validation:jar:1.3.5.RELEASE:compile
[INFO] | | | | +- (org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile - version managed from 1.3.4.RELEASE; omitted for duplicate)
[INFO] | | | | +- (org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.33:compile - omitted for duplicate)
[INFO] | | | | \- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] | | | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | | | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile (version managed from 3.2.1.Final)
[INFO] | | | | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile - version managed from 2.4.3; omitted for duplicate)
[INFO] | | | +- org.springframework:spring-web:jar:4.2.6.RELEASE:compile
[INFO] | | | | +- (org.springframework:spring-aop:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | | +- (org.springframework:spring-beans:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | | +- (org.springframework:spring-context:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | | \- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - version managed from 4.1.6.RELEASE; omitted for duplicate)
[INFO] | | | \- org.springframework:spring-webmvc:jar:4.2.6.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-context:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - version managed from 4.1.6.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-expression:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-web:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework.boot:spring-boot-starter-actuator:jar:1.3.5.RELEASE:compile
[INFO] | | | +- (org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile - version managed from 1.3.4.RELEASE; omitted for duplicate)
[INFO] | | | \- org.springframework.boot:spring-boot-actuator:jar:1.3.5.RELEASE:compile
[INFO] | | | +- (org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework.boot:spring-boot-autoconfigure:jar:1.3.5.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - version managed from 4.1.6.RELEASE; omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-context:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework.boot:spring-boot-starter-freemarker:jar:1.3.5.RELEASE:compile
[INFO] | | | +- (org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile - version managed from 1.3.4.RELEASE; omitted for duplicate)
[INFO] | | | +- (org.springframework.boot:spring-boot-starter-web:jar:1.3.5.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- org.freemarker:freemarker:jar:2.3.23:compile
[INFO] | | | \- org.springframework:spring-context-support:jar:4.2.6.RELEASE:compile
[INFO] | | | +- (org.springframework:spring-beans:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-context:jar:4.2.6.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:4.2.6.RELEASE:compile - version managed from 4.1.6.RELEASE; omitted for duplicate)
[INFO] | | +- (org.springframework.cloud:spring-cloud-commons:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-core:jar:1.1.0.RELEASE:compile
[INFO] | | | +- (org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile - omitted for duplicate)
[INFO] | | | \- (org.springframework.boot:spring-boot-autoconfigure:jar:1.3.5.RELEASE:compile - omitted for duplicate)
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:1.1.0.RELEASE:compile
[INFO] | | | \- (org.springframework.cloud:spring-cloud-netflix-core:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- com.netflix.eureka:eureka-client:jar:1.4.6:compile
[INFO] | | | +- org.codehaus.jettison:jettison:jar:1.3.7:runtime
[INFO] | | | | \- stax:stax-api:jar:1.0.1:runtime
[INFO] | | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:runtime
[INFO] | | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.6.4; omitted for duplicate)
[INFO] | | | | +- (com.netflix.servo:servo-core:jar:0.10.1:runtime - version managed from 0.5.3; omitted for duplicate)
[INFO] | | | | \- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.7.3; omitted for duplicate)
[INFO] | | | +- (com.thoughtworks.xstream:xstream:jar:1.4.2:runtime - omitted for duplicate)
[INFO] | | | +- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.7.3; omitted for duplicate)
[INFO] | | | +- (javax.ws.rs:jsr311-api:jar:1.1.1:compile - scope updated from runtime; omitted for duplicate)
[INFO] | | | +- com.netflix.servo:servo-core:jar:0.10.1:runtime
[INFO] | | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.12; omitted for duplicate)
[INFO] | | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 16.0.1; omitted for duplicate)
[INFO] | | | | \- com.netflix.servo:servo-internal:jar:0.10.1:runtime
[INFO] | | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.12; omitted for duplicate)
[INFO] | | | | \- (com.google.guava:guava:jar:18.0:runtime - version managed from 16.0.1; omitted for duplicate)
[INFO] | | | +- (com.sun.jersey:jersey-core:jar:1.19.1:compile - version managed from 1.19; scope updated from runtime; omitted for duplicate)
[INFO] | | | +- com.sun.jersey:jersey-client:jar:1.19.1:runtime (version managed from 1.19)
[INFO] | | | | \- (com.sun.jersey:jersey-core:jar:1.19.1:runtime - version managed from 1.19; omitted for duplicate)
[INFO] | | | +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:runtime (version managed from 1.19)
[INFO] | | | | +- (org.apache.httpcomponents:httpclient:jar:4.5.2:runtime - version managed from 4.3.4; omitted for duplicate)
[INFO] | | | | \- (com.sun.jersey:jersey-client:jar:1.19.1:runtime - version managed from 1.19; omitted for duplicate)
[INFO] | | | +- org.apache.httpcomponents:httpclient:jar:4.5.2:runtime
[INFO] | | | | +- org.apache.httpcomponents:httpcore:jar:4.4.4:runtime
[INFO] | | | | \- commons-codec:commons-codec:jar:1.9:runtime
[INFO] | | | +- com.google.inject:guice:jar:4.0:runtime
[INFO] | | | | +- (javax.inject:javax.inject:jar:1:runtime - omitted for duplicate)
[INFO] | | | | +- (aopalliance:aopalliance:jar:1.0:runtime - omitted for duplicate)
[INFO] | | | | \- (com.google.guava:guava:jar:18.0:runtime - version managed from 16.0.1; omitted for duplicate)
[INFO] | | | +- com.netflix.governator:governator-api:jar:1.12.10:runtime
[INFO] | | | | \- (javax.inject:javax.inject:jar:1:runtime - omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile - version managed from 2.5.4; scope updated from runtime; omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile - version managed from 2.5.4; scope updated from runtime; omitted for duplicate)
[INFO] | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:runtime - version managed from 2.5.4; omitted for duplicate)
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19.1:compile
[INFO] | | | \- (com.sun.jersey:jersey-server:jar:1.19.1:compile - omitted for duplicate)
[INFO] | | +- com.sun.jersey:jersey-server:jar:1.19.1:compile
[INFO] | | | \- com.sun.jersey:jersey-core:jar:1.19.1:compile (version managed from 1.19)
[INFO] | | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | +- com.netflix.eureka:eureka-core:jar:1.4.6:compile
[INFO] | | | +- (com.netflix.eureka:eureka-client:jar:1.4.6:runtime - omitted for duplicate)
[INFO] | | | +- com.amazonaws:aws-java-sdk-core:jar:1.10.30:runtime (version managed from 1.9.3)
[INFO] | | | | +- (org.apache.httpcomponents:httpclient:jar:4.5.2:runtime - version managed from 4.3.6; omitted for duplicate)
[INFO] | | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:runtime - version managed from 2.5.3; omitted for duplicate)
[INFO] | | | +- com.amazonaws:aws-java-sdk-ec2:jar:1.10.30:runtime (version managed from 1.9.3)
[INFO] | | | | \- (com.amazonaws:aws-java-sdk-core:jar:1.10.30:runtime - version managed from 1.9.3; omitted for duplicate)
[INFO] | | | +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.9.3:runtime
[INFO] | | | | \- (com.amazonaws:aws-java-sdk-core:jar:1.10.30:runtime - version managed from 1.9.3; omitted for duplicate)
[INFO] | | | +- com.amazonaws:aws-java-sdk-sts:jar:1.9.3:runtime
[INFO] | | | | \- (com.amazonaws:aws-java-sdk-core:jar:1.10.30:runtime - version managed from 1.9.3; omitted for duplicate)
[INFO] | | | +- com.amazonaws:aws-java-sdk-route53:jar:1.9.3:runtime
[INFO] | | | | \- (com.amazonaws:aws-java-sdk-core:jar:1.10.30:runtime - version managed from 1.9.3; omitted for duplicate)
[INFO] | | | +- com.netflix.governator:governator:jar:1.12.10:runtime
[INFO] | | | | +- (com.netflix.governator:governator-api:jar:1.12.10:runtime - omitted for duplicate)
[INFO] | | | | +- com.netflix.governator:governator-core:jar:1.12.10:runtime
[INFO] | | | | | +- (com.netflix.governator:governator-api:jar:1.12.10:runtime - omitted for duplicate)
[INFO] | | | | | +- (javax.inject:javax.inject:jar:1:runtime - omitted for duplicate)
[INFO] | | | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.6.3; omitted for duplicate)
[INFO] | | | | | \- (com.google.inject:guice:jar:4.0:runtime - omitted for duplicate)
[INFO] | | | | +- (org.hibernate:hibernate-validator:jar:5.2.4.Final:runtime - version managed from 4.1.0.Final; omitted for duplicate)
[INFO] | | | | +- org.ow2.asm:asm:jar:5.0.4:runtime
[INFO] | | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:runtime - version managed from 2.4.3; omitted for duplicate)
[INFO] | | | +- (com.thoughtworks.xstream:xstream:jar:1.4.2:runtime - omitted for duplicate)
[INFO] | | | +- (javax.ws.rs:jsr311-api:jar:1.1.1:compile - scope updated from runtime; omitted for duplicate)
[INFO] | | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:runtime
[INFO] | | | +- javax.xml.stream:stax-api:jar:1.0-2:runtime
[INFO] | | | \- (org.codehaus.woodstox:stax2-api:jar:3.1.4:runtime - omitted for duplicate)
[INFO] | | +- com.netflix.archaius:archaius-core:jar:0.7.4:compile
[INFO] | | | +- com.google.code.findbugs:jsr305:jar:3.0.1:runtime
[INFO] | | | +- (commons-configuration:commons-configuration:jar:1.8:runtime - omitted for duplicate)
[INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.6.4; omitted for duplicate)
[INFO] | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 16.0; omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile - version managed from 2.4.3; scope updated from runtime; omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile - version managed from 2.4.3; scope updated from runtime; omitted for duplicate)
[INFO] | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:runtime - version managed from 2.4.3; omitted for duplicate)
[INFO] | | +- javax.inject:javax.inject:jar:1:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.6.6:compile
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile - version managed from 2.4.3; omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile - version managed from 2.6.0; omitted for duplicate)
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile - version managed from 2.4.3; omitted for duplicate)
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.6.6:compile
[INFO] | | | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile - version managed from 2.4.3; omitted for duplicate)
[INFO] | | | | \- (com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile - version managed from 2.4.3; omitted for duplicate)
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | \- com.thoughtworks.xstream:xstream:jar:1.4.2:compile
[INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-archaius:jar:1.1.0.RELEASE:compile
[INFO] | | +- (org.springframework.cloud:spring-cloud-starter:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework.cloud:spring-cloud-netflix-core:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (com.netflix.archaius:archaius-core:jar:0.7.4:compile - version managed from 0.7.3; omitted for duplicate)
[INFO] | | +- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | | | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile
[INFO] | | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile - version managed from 2.6.0; omitted for duplicate)
[INFO] | | | \- (com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile - version managed from 2.4.3; omitted for duplicate)
[INFO] | | \- com.google.guava:guava:jar:18.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-ribbon:jar:1.1.0.RELEASE:compile
[INFO] | | +- (org.springframework.cloud:spring-cloud-starter:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework.cloud:spring-cloud-netflix-core:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework.cloud:spring-cloud-starter-archaius:jar:1.1.0.RELEASE:compile - omitted for duplicate)
[INFO] | | +- com.netflix.ribbon:ribbon:jar:2.1.5:compile
[INFO] | | | +- (com.netflix.ribbon:ribbon-core:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | | | +- com.netflix.ribbon:ribbon-transport:jar:2.1.5:runtime
[INFO] | | | | +- (com.netflix.ribbon:ribbon-core:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | | | | +- (com.netflix.ribbon:ribbon-loadbalancer:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.0.10; omitted for duplicate)
[INFO] | | | | +- (io.reactivex:rxnetty:jar:0.4.9:runtime - omitted for duplicate)
[INFO] | | | | +- io.reactivex:rxnetty-contexts:jar:0.4.9:runtime
[INFO] | | | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.0.10; omitted for duplicate)
[INFO] | | | | | \- (io.reactivex:rxnetty:jar:0.4.9:runtime - omitted for duplicate)
[INFO] | | | | +- io.reactivex:rxnetty-servo:jar:0.4.9:runtime
[INFO] | | | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.0.10; omitted for duplicate)
[INFO] | | | | | +- (io.reactivex:rxnetty:jar:0.4.9:runtime - omitted for duplicate)
[INFO] | | | | | \- (com.netflix.servo:servo-core:jar:0.10.1:runtime - version managed from 0.7.5; omitted for duplicate)
[INFO] | | | | +- (javax.inject:javax.inject:jar:1:runtime - omitted for duplicate)
[INFO] | | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.7; omitted for duplicate)
[INFO] | | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 14.0.1; omitted for duplicate)
[INFO] | | | | \- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.6.6; omitted for duplicate)
[INFO] | | | +- com.netflix.hystrix:hystrix-core:jar:1.5.2:runtime (version managed from 1.4.3)
[INFO] | | | | +- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.4.1; omitted for duplicate)
[INFO] | | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.1.1; omitted for duplicate)
[INFO] | | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.0; omitted for duplicate)
[INFO] | | | | \- org.hdrhistogram:HdrHistogram:jar:2.1.7:runtime
[INFO] | | | +- (javax.inject:javax.inject:jar:1:runtime - omitted for duplicate)
[INFO] | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.0.9; omitted for duplicate)
[INFO] | | | +- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.0.10; omitted for duplicate)
[INFO] | | | | +- io.netty:netty-codec-http:jar:4.0.27.Final:runtime
[INFO] | | | | | +- io.netty:netty-codec:jar:4.0.27.Final:runtime
[INFO] | | | | | | \- (io.netty:netty-transport:jar:4.0.27.Final:runtime - omitted for duplicate)
[INFO] | | | | | \- io.netty:netty-handler:jar:4.0.27.Final:runtime
[INFO] | | | | | +- (io.netty:netty-buffer:jar:4.0.27.Final:runtime - omitted for duplicate)
[INFO] | | | | | +- (io.netty:netty-transport:jar:4.0.27.Final:runtime - omitted for duplicate)
[INFO] | | | | | \- (io.netty:netty-codec:jar:4.0.27.Final:runtime - omitted for duplicate)
[INFO] | | | | +- io.netty:netty-transport-native-epoll:jar:4.0.27.Final:runtime
[INFO] | | | | | +- io.netty:netty-common:jar:4.0.27.Final:runtime
[INFO] | | | | | +- io.netty:netty-buffer:jar:4.0.27.Final:runtime
[INFO] | | | | | | \- (io.netty:netty-common:jar:4.0.27.Final:runtime - omitted for duplicate)
[INFO] | | | | | \- io.netty:netty-transport:jar:4.0.27.Final:runtime
[INFO] | | | | | \- (io.netty:netty-buffer:jar:4.0.27.Final:runtime - omitted for duplicate)
[INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.6; omitted for duplicate)
[INFO] | | | +- (commons-configuration:commons-configuration:jar:1.8:runtime - omitted for duplicate)
[INFO] | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 14.0.1; omitted for duplicate)
[INFO] | | | \- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.6.6; omitted for duplicate)
[INFO] | | +- com.netflix.ribbon:ribbon-core:jar:2.1.5:compile
[INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.6.4; omitted for duplicate)
[INFO] | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 14.0.1; omitted for duplicate)
[INFO] | | | +- (commons-configuration:commons-configuration:jar:1.8:runtime - omitted for duplicate)
[INFO] | | | +- (commons-lang:commons-lang:jar:2.6:runtime - omitted for duplicate)
[INFO] | | | \- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.6.6; omitted for duplicate)
[INFO] | | +- com.netflix.ribbon:ribbon-httpclient:jar:2.1.5:compile
[INFO] | | | +- (com.netflix.ribbon:ribbon-core:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | | | +- (com.netflix.ribbon:ribbon-loadbalancer:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:runtime (version managed from 3.2.1)
[INFO] | | | +- (org.apache.httpcomponents:httpclient:jar:4.5.2:runtime - version managed from 4.2.1; omitted for duplicate)
[INFO] | | | +- (com.sun.jersey:jersey-client:jar:1.19.1:runtime - version managed from 1.19; omitted for duplicate)
[INFO] | | | +- (com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:runtime - version managed from 1.19; omitted for duplicate)
[INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.7; omitted for duplicate)
[INFO] | | | +- (com.netflix.servo:servo-core:jar:0.10.1:runtime - version managed from 0.9.2; omitted for duplicate)
[INFO] | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 14.0.1; omitted for duplicate)
[INFO] | | | +- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.6.6; omitted for duplicate)
[INFO] | | | \- com.netflix.netflix-commons:netflix-commons-util:jar:0.1.1:runtime
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.6.4; omitted for duplicate)
[INFO] | | +- com.netflix.ribbon:ribbon-loadbalancer:jar:2.1.5:compile
[INFO] | | | +- (com.netflix.ribbon:ribbon-core:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | | | +- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] | | | | \- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.6.4; omitted for duplicate)
[INFO] | | | +- (io.reactivex:rxjava:jar:1.1.5:runtime - version managed from 1.0.9; omitted for duplicate)
[INFO] | | | +- (org.slf4j:slf4j-api:jar:1.7.21:runtime - version managed from 1.7.7; omitted for duplicate)
[INFO] | | | +- (com.netflix.servo:servo-core:jar:0.10.1:runtime - version managed from 0.9.2; omitted for duplicate)
[INFO] | | | +- (com.google.guava:guava:jar:18.0:runtime - version managed from 14.0.1; omitted for duplicate)
[INFO] | | | +- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.6.6; omitted for duplicate)
[INFO] | | | \- (com.netflix.netflix-commons:netflix-commons-util:jar:0.1.1:runtime - omitted for duplicate)
[INFO] | | \- io.reactivex:rxjava:jar:1.1.5:compile
[INFO] | \- com.netflix.ribbon:ribbon-eureka:jar:2.1.5:compile
[INFO] | +- (com.netflix.ribbon:ribbon-core:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | +- (com.netflix.ribbon:ribbon-loadbalancer:jar:2.1.5:runtime - omitted for duplicate)
[INFO] | +- (com.netflix.eureka:eureka-client:jar:1.4.6:runtime - version managed from 1.1.153; omitted for duplicate)
[INFO] | +- (org.slf4j:slf4j-api:jar:1.7.21:compile - version managed from 1.7.7; scope updated from runtime; omitted for duplicate)
[INFO] | \- (com.netflix.archaius:archaius-core:jar:0.7.4:runtime - version managed from 0.6.6; omitted for duplicate)
[INFO] \- org.springframework.boot:spring-boot-starter-test:jar:1.3.5.RELEASE:test
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- (org.hamcrest:hamcrest-core:jar:1.3:test - version managed from 1.1; omitted for duplicate)
[INFO] +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | +- (org.hamcrest:hamcrest-core:jar:1.3:test - version managed from 1.1; omitted for duplicate)
[INFO] | \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | \- (org.hamcrest:hamcrest-core:jar:1.3:test - version managed from 1.1; omitted for duplicate)
[INFO] +- (org.springframework:spring-core:jar:4.2.6.RELEASE:test - version managed from 4.1.6.RELEASE; omitted for duplicate)
[INFO] \- org.springframework:spring-test:jar:4.2.6.RELEASE:test
[INFO] \- (org.springframework:spring-core:jar:4.2.6.RELEASE:test - version managed from 4.1.6.RELEASE; omitted for duplicate)
这就是结果了。通过加上括号,我们现在可以确认之前看不到的依赖关系。
用途
在Eclipse的”Effective POM”中确实可以看到,但是当依赖关系变得如此复杂时,通过Effective POM看起来就很困难了。目前只有这种情况。虽然只能想到这种情况,但如果遇到了,它可能是一个强大的选项。