Wednesday May 22

Key Concepts

Maven Dependency Tree

PDFPrintE-mail
Friday, 08 April 2011 11:38
AddThis Social Bookmark Button

To obtain your project dependency tree with Maven execute the following maven command :

Maven dependency tree command

>mvn dependency:tree

The result should look like
 

 +- org.hibernate:hibernate-annotations:jar:3.3.0.ga:compile
  \- javax.persistence:persistence-api:jar:1.0:compile
 +- org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
 +- org.hibernate:hibernate-c3p0:jar:3.3.0.GA:compile
 +- org.hibernate:hibernate-core:jar:3.3.0.GA:compile
 |  |  +- antlr:antlr:jar:2.7.6:compile
 |  |  \- dom4j:dom4j:jar:1.6.1:compile
 |  +- c3p0:c3p0:jar:0.9.1:compile
 |  \- org.slf4j:slf4j-api:jar:1.4.2:compile
 +- javax.transaction:jta:jar:1.1:compile
 +- jfree:jfreechart:jar:1.0.3:compile
 |  \- jfree:jcommon:jar:1.0.6:compile
 +- org.unhcr.tools:sybase-installer:jar:1.0:compile
 +- org.easymock:easymock:jar:3.0:test
 |  +- cglib:cglib-nodep:jar:2.2:test
 |  \- org.objenesis:objenesis:jar:1.2:test
 +- junit:junit:jar:4.8.2:test (scope not updated to compile)
....

 

Maven Tutorial related articles

 

 

Tags: compile, maven, test, tutorial, antlr, org.hibernate, 3.3.0.ga, dependency, tree, dom4j, c3p0, junit, jfree

Add comment


Security code
Refresh

Java Tutorial on Facebook