View the dependencies of the MAVEN project MVN Dependency:tree

Source: Internet
Author: User
Tags glassfish

To view the dependencies of the MAVEN project, we can use the following command:

MVN Dependency:tree
Take Dubbo's Dubbo-demo-provider as an example, we can enter this command to obtain the following information:

MVN Dependency:tree
[INFO] Scanning for projects ...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for Com.alibaba:dubbo-demo-provider:jar:2.5.4-snapshot
[WARNING] ' Build.plugins.plugin.version ' for Org.apache.maven.plugins:maven-surefire-plugin is missing. @ com.alibaba:dubbo-parent:2.5.4-snapshot,/users/ghj1976/project/github/alibaba/dubbo/pom.xml, line 379, column 12
[WARNING] ' Build.plugins.plugin.version ' for Org.apache.maven.plugins:maven-jar-plugin is missing. @ com.alibaba:dubbo-parent:2.5.4-snapshot,/users/ghj1976/project/github/alibaba/dubbo/pom.xml, line 365, column 12
[WARNING] ' Build.plugins.plugin.version ' for Org.apache.maven.plugins:maven-deploy-plugin is missing. @ com.alibaba:dubbo-parent:2.5.4-snapshot,/users/ghj1976/project/github/alibaba/dubbo/pom.xml, line 449, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, the future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO]------------------------------------------------------------------------
[INFO] Building Dubbo-demo-provider 2.5.4-snapshot
[INFO]------------------------------------------------------------------------
[INFO]
[INFO]---maven-dependency-plugin:2.8:tree (default-cli) @ dubbo-demo-provider---
[INFO] Com.alibaba:dubbo-demo-provider:jar:2.5.4-snapshot
[INFO] +-Com.alibaba:dubbo-demo-api:jar:2.5.4-snapshot:compile
[INFO] +-Com.alibaba:dubbo:jar:2.5.4-snapshot:compile
[INFO] | \-Commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +-Org.springframework:spring:jar:2.5.6.sec03:compile
[INFO] +-Org.javassist:javassist:jar:3.15.0-ga:compile
[INFO] +-Org.jboss.netty:netty:jar:3.2.5.final:compile
[INFO] +-Org.apache.mina:mina-core:jar:1.1.7:compile
[INFO] +-Org.glassfish.grizzly:grizzly-core:jar:2.1.4:compile
[INFO] | +-Org.glassfish.grizzly:grizzly-framework:jar:2.1.4:compile
[INFO] |  | \-Org.glassfish.gmbal:gmbal-api-only:jar:3.0.0-b023:compile
[INFO] |     | \-Org.glassfish.external:management-api:jar:3.0.0-b012:compile
[INFO] | +-Org.glassfish.grizzly:grizzly-portunif:jar:2.1.4:compile
[INFO] | \-Org.glassfish.grizzly:grizzly-rcm:jar:2.1.4:compile
[INFO] +-Org.apache.httpcomponents:httpclient:jar:4.1.2:compile
[INFO] | +-Org.apache.httpcomponents:httpcore:jar:4.1.2:compile
[INFO] | \-Commons-codec:commons-codec:jar:1.4:compile
[INFO] +-Com.alibaba:fastjson:jar:1.1.39:compile
[INFO] +-Com.thoughtworks.xstream:xstream:jar:1.4.1:compile
[INFO] | +-Xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | \-Xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +-Org.apache.bsf:bsf-api:jar:3.1:compile
[INFO] +-Org.apache.zookeeper:zookeeper:jar:3.3.3:compile
[INFO] | \-Jline:jline:jar:0.9.94:compile
[INFO] +-Com.github.sgroschupf:zkclient:jar:0.1:compile
[INFO] +-Com.netflix.curator:curator-framework:jar:1.1.16:compile
[INFO] | +-Com.netflix.curator:curator-client:jar:1.1.16:compile
[INFO] | \-Com.google.guava:guava:jar:11.0.1:compile
[INFO] | \-Com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] +-Com.googlecode.xmemcached:xmemcached:jar:1.3.6:compile
[INFO] +-Org.apache.cxf:cxf-rt-frontend-simple:jar:2.6.1:compile
[INFO] | +-Org.apache.cxf:cxf-api:jar:2.6.1:compile
[INFO] |  | +-Org.codehaus.woodstox:woodstox-core-asl:jar:4.1.2:runtime
[INFO] |  |  | \-Org.codehaus.woodstox:stax2-api:jar:3.1.1:runtime
[INFO] |  | +-Org.apache.ws.xmlschema:xmlschema-core:jar:2.0.2:compile
[INFO] |  | +-Org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] |  | \-Wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] | +-Org.apache.cxf:cxf-rt-core:jar:2.6.1:compile
[INFO] |  | \-Com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile
[INFO] | \-Org.apache.cxf:cxf-rt-bindings-soap:jar:2.6.1:compile
[INFO] | \-Org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.6.1:compile
[INFO] +-Org.apache.cxf:cxf-rt-transports-http:jar:2.6.1:compile
[INFO] +-Org.apache.thrift:libthrift:jar:0.8.0:compile
[INFO] | \-Commons-lang:commons-lang:jar:2.5:compile
[INFO] +-Com.caucho:hessian:jar:4.0.7:compile
[INFO] +-Javax.servlet:servlet-api:jar:2.5: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] +-Log4j:log4j:jar:1.2.16:compile
[INFO] +-Org.slf4j:slf4j-api:jar:1.6.2:compile
[INFO] +-Redis.clients:jedis:jar:2.1.0:compile
[INFO] | \-Commons-pool:commons-pool:jar:1.5.5:compile
[INFO] +-Javax.validation:validation-api:jar:1.0.0.ga:compile
[INFO] +-Org.hibernate:hibernate-validator:jar:4.2.0.final:compile
[INFO] +-Javax.cache:cache-api:jar:0.4:compile
[INFO] +-junit:junit:jar:4.10:test
[INFO] | \-Org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] +-org.easymock:easymock:jar:3.0:test
[INFO] | +-Cglib:cglib-nodep:jar:2.2:test
[INFO] | \-Org.objenesis:objenesis:jar:1.2:test
[INFO] +-org.easymock:easymockclassextension:jar:3.0:test
[INFO] \-com.googlecode.jmockit:jmockit:jar:0.999.8:test
[INFO]------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]------------------------------------------------------------------------
[INFO] Total time:2.057 S
[INFO] Finished at:2016-03-29t15:41:31+08:00
[INFO] Final memory:12m/309m
[INFO]------------------------------------------------------------------------

Resources:

Using the MAVEN command to analyze dependencies between jar packages
Http://outofmemory.cn/code-snippet/10914/maven-command-dependency

View the dependencies of the MAVEN project MVN Dependency:tree

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.