Skip to main content

Maven Tree 命令

依赖冲突?依赖版本不对?

可以用 maven 的 tree 命令 来分析下,然后再采取对应的操作

mvn dependency:tree
[INFO] ---------------------< com.github:core-engine >----------------------
[INFO] Building core-engine 1.0.0-M1 [18/18]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ core-engine ---
[INFO] com.github:core-engine:jar:1.0.0-M1
[INFO] +- org.springframework.boot:spring-boot-test:jar:2.5.13:compile
[INFO] | \- org.springframework.boot:spring-boot:jar:2.5.13:compile
[INFO] | +- org.springframework:spring-core:jar:5.3.19:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.3.19:compile
[INFO] | \- org.springframework:spring-context:jar:5.3.19:compile
[INFO] | +- org.springframework:spring-beans:jar:5.3.19:compile
[INFO] | \- org.springframework:spring-expression:jar:5.3.19:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.5.13:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.5.13:compile
[INFO] +- com.github:core-api:jar:1.0.0-M1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:3.0.6:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter:jar:3.0.5:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-context:jar:3.0.5:compile
[INFO] | | | \- org.springframework.security:spring-security-rsa:jar:1.0.10.RELEASE:compile
[INFO] | | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.68:compile
[INFO] | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.68:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-openfeign-core:jar:3.0.6:compile
[INFO] | | | \- io.github.openfeign.form:feign-form-spring:jar:3.8.0:compile
[INFO] | | | +- io.github.openfeign.form:feign-form:jar:3.8.0:compile
[INFO] | | | \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | | | \- commons-io:commons-io:jar:2.2:compile
[INFO] | | +- org.springframework:spring-web:jar:5.3.19:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:3.0.5:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.5.6:compile
[INFO] | | +- io.github.openfeign:feign-core:jar:10.12:compile
[INFO] | | \- io.github.openfeign:feign-slf4j:jar:10.12:compile
[INFO] | \- org.springframework.cloud:spring-cloud-starter-loadbalancer:jar:3.0.5:compile
[INFO] | +- org.springframework.cloud:spring-cloud-loadbalancer:jar:3.0.5:compile
[INFO] | | +- io.projectreactor:reactor-core:jar:3.4.17:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] | | \- io.projectreactor.addons:reactor-extra:jar:3.4.8:compile
[INFO] | \- com.stoyanr:evictor:jar:1.0.0:compile
[INFO] +- com.github:core-common:jar:1.0.0-M1:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:2.5.0:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter:jar:2.5.13:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.5.13:compile
[INFO] | | | | +- ch.qos.logback:logback-classic:jar:1.2.11:compile
[INFO] | | | | | \- ch.qos.logback:logback-core:jar:1.2.11:compile
[INFO] | | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] | | | | | \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] | | | | \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] | | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | | \- org.yaml:snakeyaml:jar:1.28:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-json:jar:2.5.13:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.12.6:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.12.6:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.12.6:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.5.13:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.62:compile
[INFO] | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.62:compile
[INFO] | | \- org.springframework:spring-webmvc:jar:5.3.19:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.5.13:compile
[INFO] | | \- org.springframework:spring-aop:jar:5.3.19:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-cache:jar:2.5.0:compile
[INFO] | | \- org.springframework:spring-context-support:jar:5.3.19:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.5.13:compile
[INFO] | | +- org.springframework.data:spring-data-redis:jar:2.5.11:compile
[INFO] | | | +- org.springframework.data:spring-data-keyvalue:jar:2.5.11:compile
[INFO] | | | | \- org.springframework.data:spring-data-commons:jar:2.5.11:compile
[INFO] | | | +- org.springframework:spring-tx:jar:5.3.19:compile
[INFO] | | | \- org.springframework:spring-oxm:jar:5.3.19:compile
[INFO] | | \- io.lettuce:lettuce-core:jar:6.1.8.RELEASE:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.76.Final:compile
[INFO] | | +- io.netty:netty-handler:jar:4.1.76.Final:compile
[INFO] | | | +- io.netty:netty-resolver:jar:4.1.76.Final:compile
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.76.Final:compile
[INFO] | | | \- io.netty:netty-codec:jar:4.1.76.Final:compile
[INFO] | | \- io.netty:netty-transport:jar:4.1.76.Final:compile
[INFO] | +- io.springfox:springfox-boot-starter:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-oas:jar:3.0.0:compile
[INFO] | | | +- io.swagger.core.v3:swagger-annotations:jar:2.1.2:compile
[INFO] | | | +- io.swagger.core.v3:swagger-models:jar:2.1.2:compile
[INFO] | | | +- io.springfox:springfox-spi:jar:3.0.0:compile
[INFO] | | | +- io.springfox:springfox-schema:jar:3.0.0:compile
[INFO] | | | +- io.springfox:springfox-core:jar:3.0.0:compile
[INFO] | | | | \- net.bytebuddy:byte-buddy:jar:1.10.22:compile
[INFO] | | | +- io.springfox:springfox-spring-web:jar:3.0.0:compile
[INFO] | | | | \- io.github.classgraph:classgraph:jar:4.8.83:compile
[INFO] | | | +- io.springfox:springfox-spring-webmvc:jar:3.0.0:compile
[INFO] | | | +- io.springfox:springfox-spring-webflux:jar:3.0.0:compile
[INFO] | | | \- io.springfox:springfox-swagger-common:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-data-rest:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-bean-validators:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-swagger2:jar:3.0.0:compile
[INFO] | | | +- io.swagger:swagger-annotations:jar:1.5.20:compile
[INFO] | | | \- io.swagger:swagger-models:jar:1.5.20:compile
[INFO] | | +- io.springfox:springfox-swagger-ui:jar:3.0.0:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-core:jar:2.0.0.RELEASE:compile
[INFO] | | \- org.springframework.plugin:spring-plugin-metadata:jar:2.0.0.RELEASE:compile
[INFO] | +- org.projectlombok:lombok:jar:1.18.20:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.12.0:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.7:compile
[INFO] | +- com.google.guava:guava:jar:28.2-jre:compile
[INFO] | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | +- org.checkerframework:checker-qual:jar:2.10.0:compile
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.3.4:compile
[INFO] | | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.5.0:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.62:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.2.3.Final:compile
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.4.3.Final:compile
[INFO] | +- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] | +- org.mapstruct:mapstruct:jar:1.4.2.Final:compile
[INFO] | +- com.alibaba:easyexcel:jar:3.0.5:compile
[INFO] | | +- org.apache.poi:poi:jar:4.1.2:compile
[INFO] | | | +- commons-codec:commons-codec:jar:1.15:compile
[INFO] | | | +- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] | | | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | | | \- com.zaxxer:SparseBitSet:jar:1.2:compile
[INFO] | | +- org.apache.poi:poi-ooxml:jar:4.1.2:compile
[INFO] | | | +- org.apache.commons:commons-compress:jar:1.19:compile
[INFO] | | | \- com.github.virtuald:curvesapi:jar:1.06:compile
[INFO] | | +- org.apache.poi:poi-ooxml-schemas:jar:4.1.2:compile
[INFO] | | | \- org.apache.xmlbeans:xmlbeans:jar:3.1.0:compile
[INFO] | | +- org.apache.commons:commons-csv:jar:1.8:compile
[INFO] | | +- cglib:cglib:jar:3.3.0:compile
[INFO] | | | \- org.ow2.asm:asm:jar:7.1:compile
[INFO] | | \- org.ehcache:ehcache:jar:3.9.9:compile
[INFO] | +- com.alibaba:transmittable-thread-local:jar:2.12.2:compile
[INFO] | +- biz.paluch.logging:logstash-gelf:jar:1.12.0:compile
[INFO] | +- cn.hutool:hutool-all:jar:5.7.22:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.12.6.1:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.6:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.12.6:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.12.6:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.12.6:compile
[INFO] | | | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] | | \- com.fasterxml.woodstox:woodstox-core:jar:6.2.4:compile
[INFO] | \- net.logstash.logback:logstash-logback-encoder:jar:7.0.1:compile
[INFO] +- com.github:core-component-amqp:jar:1.0.0-M1:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-amqp:jar:2.5.13:compile
[INFO] | +- org.springframework:spring-messaging:jar:5.3.19:compile
[INFO] | \- org.springframework.amqp:spring-rabbit:jar:2.3.16:compile
[INFO] | +- org.springframework.amqp:spring-amqp:jar:2.3.16:compile
[INFO] | | \- org.springframework.retry:spring-retry:jar:1.3.3:compile
[INFO] | \- com.rabbitmq:amqp-client:jar:5.12.0:compile
[INFO] \- com.github:core-component-discovery:jar:1.0.0-M1:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-consul-discovery:jar:3.0.4:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-consul:jar:3.0.4:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-consul-core:jar:3.0.4:compile
[INFO] | | +- com.ecwid.consul:consul-api:jar:1.4.5:compile
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.15:compile
[INFO] | \- org.springframework.cloud:spring-cloud-consul-discovery:jar:3.0.4:compile
[INFO] \- org.springframework.boot:spring-boot-starter-actuator:jar:2.5.0:compile
[INFO] +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.5.13:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator:jar:2.5.13:compile
[INFO] \- io.micrometer:micrometer-core:jar:1.7.11:compile
[INFO] +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] ------------------------------------------------------------------------