maven查看jar包依赖树,命令如下:
mvn dependency:tree
结果如下:
[INFO] org.example:spring-boot-example:jar:1.0-SNAPSHOT [INFO] \- org.springframework.boot:spring-boot-starter-web:jar:2.0.4.RELEASE:compile [INFO] +- org.springframework.boot:spring-boot-starter:jar:2.0.4.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot:jar:2.0.4.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.4.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.4.RELEASE:compile [INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile [INFO] | | | +- ch.qos.logback:logback-core:jar:1.2.3:compile [INFO] | | | \- org.slf4j:slf4j-api:jar:1.7.25:compile [INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile [INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile [INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile [INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile [INFO] | +- org.springframework:spring-core:jar:5.0.8.RELEASE:compile [INFO] | | \- org.springframework:spring-jcl:jar:5.0.8.RELEASE:compile [INFO] | \- org.yaml:snakeyaml:jar:1.19:runtime [INFO] +- org.springframework.boot:spring-boot-starter-json:jar:2.0.4.RELEASE:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile [INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.6:compile [INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6:compile [INFO] | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.6:compile [INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.4.RELEASE:compile [INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.32:compile [INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.32:compile [INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.32:compile [INFO] +- org.hibernate.validator:hibernate-validator:jar:6.0.11.Final:compile [INFO] | +- javax.validation:validation-api:jar:2.0.1.Final:compile [INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile [INFO] | \- com.fasterxml:classmate:jar:1.3.4:compile [INFO] +- org.springframework:spring-web:jar:5.0.8.RELEASE:compile [INFO] | \- org.springframework:spring-beans:jar:5.0.8.RELEASE:compile [INFO] \- org.springframework:spring-webmvc:jar:5.0.8.RELEASE:compile [INFO] +- org.springframework:spring-aop:jar:5.0.8.RELEASE:compile [INFO] +- org.springframework:spring-context:jar:5.0.8.RELEASE:compile [INFO] \- org.springframework:spring-expression:jar:5.0.8.RELEASE:compile