查看Maven项目的jar包依赖

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] ------------------------------------------------------------------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值