INFO] +- com.cainiao.cnlearn:cnlearn-inner-facade:jar:1.0.19-SNAPSHOT:compile
[INFO] | +- com.google.guava:guava:jar:23.5-jre:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | | +- org.checkerframework:checker-qual:jar:2.0.0:compile
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- com.cainiao.lcp:lcp-common:jar:1.0.0:compile
[INFO] | \- com.alibaba:fastjson:jar:1.2.50:compile
比如要查询fastjson的依赖:
\- com.alibaba:fastjson:jar:1.2.50:compile
分别为直接依赖包和子依赖 列出的这一行内容分别为: GroupID : ArtifactId:Version:以及classPath 另外一种很直观的排包方式:对应示例:
mvn dependency:tree -Dverbose -Dincludes=com.alibaba:fastjson