Maven依赖关系树

进到pom.xml文件所在目录,执行mvn dependency:tree,
mvn dependency:tree -DoutputFile="文件名xxx"mvn dependency:tree > 文件名xxx
用来排查项目里包的依赖冲突。比如用到两个中间件依赖,但他们有共同的底层依赖,比如netty,那么最好通过版本调整使得底层依赖的版本一致。

com.wangan:springbootone:jar:0.0.1-SNAPSHOT
├── org.springframework.boot:spring-boot-starter-web:jar:2.7.3:compile
│   ├── org.springframework.boot:spring-boot-starter:jar:2.7.3:compile
│   │   ├── org.springframework.boot:spring-boot:jar:2.7.3:compile
│   │   ├── org.springframework.boot:spring-boot-autoconfigure:jar:2.7.3:compile
│   │   ├── org.springframework.boot:spring-boot-starter-logging:jar:2.7.3:compile
│   │   │   ├── ch.qos.logback:logback-classic:jar:1.2.11:compile
│   │   │   │   └── ch.qos.logback:logback-core:jar:1.2.11:compile
│   │   │   ├── org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
│   │   │   │   └── org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
│   │   │   └── org.slf4j:jul-to-slf4j:jar:1.7.36:compile
│   │   ├── jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
│   │   └── org.yaml:snakeyaml:jar:1.30:compile
│   ├── org.springframework.boot:spring-boot-starter-json:jar:2.7.3:compile
│   │   ├── com.fasterxml.jackson.core:jackson-databind:jar:2.13.3:compile
│   │   │   ├── com.fasterxml.jackson.core:jackson-annotations:jar:2.13.3:compile
│   │   │   └── com.fasterxml.jackson.core:jackson-core:jar:2.13.3:compile
│   │   ├── com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.3:compile
│   │   ├── com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.3:compile
│   │   └── com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.3:compile
│   ├── org.springframework.boot:spring-boot-starter-tomcat:jar:2.7.3:compile
│   │   ├── org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.65:compile
│   │   ├── org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.65:compile
│   │   └── org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.65:compile
│   ├── org.springframework:spring-web:jar:5.3.22:compile
│   │   └── org.springframework:spring-beans:jar:5.3.22:compile
│   └── org.springframework:spring-webmvc:jar:5.3.22:compile
│       ├── org.springframework:spring-aop:jar:5.3.22:compile
│       ├── org.springframework:spring-context:jar:5.3.22:compile
│       └── org.springframework:spring-expression:jar:5.3.22:compile
├── org.springframework.boot:spring-boot-starter-data-r2dbc:jar:2.7.3:compile
│   ├── org.springframework.data:spring-data-r2dbc:jar:1.5.2:compile
│   │   ├── org.springframework.data:spring-data-commons:jar:2.7.2:compile
│   │   ├── org.springframework.data:spring-data-relational:jar:2.4.2:compile
│   │   ├── org.springframework:spring-r2dbc:jar:5.3.22:compile
│   │   └── org.springframework:spring-tx:jar:5.3.22:compile
│   ├── io.r2dbc:r2dbc-spi:jar:0.9.1.RELEASE:compile
│   │   └── org.reactivestreams:reactive-streams:jar:1.0.4:compile
│   └── io.r2dbc:r2dbc-pool:jar:0.9.0.RELEASE:compile
│       └── io.projectreactor.addons:reactor-pool:jar:0.2.9:compile
├── org.springframework.boot:spring-boot-starter-webflux:jar:2.7.3:compile
│   ├── org.springframework.boot:spring-boot-starter-reactor-netty:jar:2.7.3:compile
│   │   └── io.projectreactor.netty:reactor-netty-http:jar:1.0.22:compile
│   │       ├── io.netty:netty-codec-http:jar:4.1.79.Final:compile
│   │       │   ├── io.netty:netty-common:jar:4.1.79.Final:compile
│   │       │   ├── io.netty:netty-buffer:jar:4.1.79.Final:compile
│   │       │   ├── io.netty:netty-transport:jar:4.1.79.Final:compile
│   │       │   └── io.netty:netty-codec:jar:4.1.79.Final:compile
│   │       ├── io.netty:netty-codec-http2:jar:4.1.79.Final:compile
│   │       ├── io.netty:netty-resolver-dns:jar:4.1.79.Final:compile
│   │       │   ├── io.netty:netty-resolver:jar:4.1.79.Final:compile
│   │       │   └── io.netty:netty-codec-dns:jar:4.1.79.Final:compile
│   │       ├── io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.79.Final:compile
│   │       │   └── io.netty:netty-resolver-dns-classes-macos:jar:4.1.79.Final:compile
│   │       └── io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.79.Final:compile
│   │           ├── io.netty:netty-transport-native-unix-common:jar:4.1.79.Final:compile
│   │           └── io.netty:netty-transport-classes-epoll:jar:4.1.79.Final:compile
│   └── org.springframework:spring-webflux:jar:5.3.22:compile
├── mysql:mysql-connector-java:jar:8.0.30:runtime
├── dev.miku:r2dbc-mysql:jar:0.8.2.RELEASE:compile
│   ├── io.projectreactor:reactor-core:jar:3.4.22:compile
│   ├── io.projectreactor.addons:reactor-extra:jar:3.4.8:compile
│   ├── io.projectreactor.netty:reactor-netty:jar:1.0.22:compile
│   │   ├── io.projectreactor.netty:reactor-netty-core:jar:1.0.22:compile
│   │   │   ├── io.netty:netty-handler:jar:4.1.79.Final:compile
│   │   │   └── io.netty:netty-handler-proxy:jar:4.1.79.Final:compile
│   │   │       └── io.netty:netty-codec-socks:jar:4.1.79.Final:compile
│   │   ├── io.projectreactor.netty.incubator:reactor-netty-incubator-quic:jar:0.0.11:runtime
│   │   │   └── io.netty.incubator:netty-incubator-codec-native-quic:jar:linux-x86_64:0.0.28.Final:runtime
│   │   │       └── io.netty.incubator:netty-incubator-codec-classes-quic:jar:0.0.28.Final:runtime
│   │   │           └── commons-codec:commons-codec:jar:1.15:runtime
│   │   └── io.projectreactor.netty:reactor-netty-http-brave:jar:1.0.22:runtime
│   │       └── io.zipkin.brave:brave-instrumentation-http:jar:5.13.10:runtime
│   │           └── io.zipkin.brave:brave:jar:5.13.10:runtime
│   │               └── io.zipkin.reporter2:zipkin-reporter-brave:jar:2.16.3:runtime
│   │                   └── io.zipkin.reporter2:zipkin-reporter:jar:2.16.3:runtime
│   │                       └── io.zipkin.zipkin2:zipkin:jar:2.23.2:runtime
│   └── org.slf4j:slf4j-api:jar:1.7.36:compile
├── org.springframework.boot:spring-boot-starter-test:jar:2.7.3:test
│   ├── org.springframework.boot:spring-boot-test:jar:2.7.3:test
│   ├── org.springframework.boot:spring-boot-test-autoconfigure:jar:2.7.3:test
│   ├── com.jayway.jsonpath:json-path:jar:2.7.0:test
│   │   └── net.minidev:json-smart:jar:2.4.8:test
│   │       └── net.minidev:accessors-smart:jar:2.4.8:test
│   │           └── org.ow2.asm:asm:jar:9.1:test
│   ├── jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test
│   │   └── jakarta.activation:jakarta.activation-api:jar:1.2.2:test
│   ├── org.assertj:assertj-core:jar:3.22.0:test
│   ├── org.hamcrest:hamcrest:jar:2.2:test
│   ├── org.junit.jupiter:junit-jupiter:jar:5.8.2:test
│   │   ├── org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
│   │   │   ├── org.opentest4j:opentest4j:jar:1.2.0:test
│   │   │   ├── org.junit.platform:junit-platform-commons:jar:1.8.2:test
│   │   │   └── org.apiguardian:apiguardian-api:jar:1.1.2:test
│   │   ├── org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
│   │   └── org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
│   │       └── org.junit.platform:junit-platform-engine:jar:1.8.2:test
│   ├── org.mockito:mockito-core:jar:4.5.1:test
│   │   ├── net.bytebuddy:byte-buddy:jar:1.12.13:test
│   │   ├── net.bytebuddy:byte-buddy-agent:jar:1.12.13:test
│   │   └── org.objenesis:objenesis:jar:3.2:test
│   ├── org.mockito:mockito-junit-jupiter:jar:4.5.1:test
│   ├── org.skyscreamer:jsonassert:jar:1.5.1:test
│   │   └── com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
│   ├── org.springframework:spring-core:jar:5.3.22:compile
│   │   └── org.springframework:spring-jcl:jar:5.3.22:compile
│   ├── org.springframework:spring-test:jar:5.3.22:test
│   └── org.xmlunit:xmlunit-core:jar:2.9.0:test
├── org.projectlombok:lombok:jar:1.18.24:compile
├── com.esotericsoftware:reflectasm:jar:1.11.9:compile
├── io.github.pig-mesh.ai:deepseek-spring-boot-starter:jar:1.4.2:compile
│   └── io.github.pig-mesh.ai:deepseek4j-core:jar:1.4.2:compile
│       ├── com.squareup.retrofit2:retrofit:jar:2.9.0:compile
│       ├── com.squareup.retrofit2:converter-jackson:jar:2.9.0:compile
│       ├── com.squareup.okhttp3:okhttp:jar:4.9.3:compile
│       │   ├── com.squareup.okio:okio:jar:2.8.0:compile
│       │   │   └── org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.6.21:compile
│       │   └── org.jetbrains.kotlin:kotlin-stdlib:jar:1.6.21:compile
│       │       └── org.jetbrains:annotations:jar:13.0:compile
│       └── com.squareup.okhttp3:okhttp-sse:jar:4.9.3:compile
│           └── org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.6.21:compile
│               └── org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.6.21:compile
├── org.bouncycastle:bcprov-jdk15on:jar:1.70:compile
└── org.bouncycastle:bcpkix-jdk15on:jar:1.70:compile
    └── org.bouncycastle:bcutil-jdk15on:jar:1.70:compile

posted on 2025-04-18 14:24  肥兔子爱豆畜子  阅读(92)  评论(0)    收藏  举报

导航