您的位置:首页 > 其它

查看Maven项目的jar包依赖

2016-08-09 09:21 465 查看
1.首先进入到pom.xml文件所在的目录

2.执行下面的命令行

mvn dependency:tree
或者将输出结果重定向到某个文件中:
mvn dependency:tree -Doutput=output.txt
会在当前目录生成output.txt文件


出现下面的结果:

[INFO] +- org.springframework:spring-webmvc:jar:2.5.6:compile
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] |  +- org.springframework:spring-beans:jar:2.5.6:compile
[INFO] |  +- org.springframework:spring-context:jar:2.5.6:compile
[INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  +- org.springframework:spring-context-support:jar:2.5.6:compile
[INFO] |  +- org.springframework:spring-core:jar:2.5.6:compile
[INFO] |  \- org.springframework:spring-web:jar:2.5.6:compile
[INFO] +- org.springframework:spring:jar:2.5.6:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- com.alibaba.rocketmq:rocketmq-client:jar:3.2.6:compile
[INFO] +- com.alibaba.rocketmq:rocketmq-common:jar:3.2.6:compile
[INFO] +- com.alibaba.rocketmq:rocketmq-remoting:jar:3.2.6:compile
[INFO] |  +- io.netty:netty-all:jar:4.0.25.Final:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] +- com.alibaba:fastjson:jar:1.2.4:compile
[INFO] +- com.alibaba:dubbo:jar:2.5.3:compile
[INFO] |  +- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] |  \- org.jboss.netty:netty:jar:3.2.5.Final:compile
[INFO] +- com.caucho:hessian:jar:4.0.7:compile
[INFO] +- org.mortbay.jetty:jetty:jar:6.1.26:compile
[INFO] |  +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile
[INFO] |  \- org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile
[INFO] +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile
[INFO] |  +- jline:jline:jar:0.9.94:compile
[INFO] |  \- io.netty:netty:jar:3.7.0.Final:compile
[INFO] +- com.101tec:zkclient:jar:0.4:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.quartz-scheduler:quartz:jar:1.8.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.902s
[INFO] Finished at: Tue Aug 09 09:15:49 CST 2016
[INFO] Final Memory: 12M/308M
[INFO] ------------------------------------------------------------------------
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  maven 依赖树