<project>
<profiles>
<profile>
<id>graph</id>
<pluginRepositories>
<pluginRepository>
<id>mvnplugins.fusesource.org</id>
<url>http://mvnplugins.fusesource.org/repo/release</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.fusesource.mvnplugins</groupId>
<artifactId>maven-graph-plugin</artifactId>
<version>1.4</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
<build>
<plugins>
<plugin>
<groupId> org.fusesource.mvnplugins</groupId >
<artifactId> maven-graph-plugin</artifactId>
<configuration>
</configuration>
</plugin>
</plugins>
</build>
mvn -P graph graph:reactor
< project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation ="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
< modelVersion> 4.0.0</ modelVersion >
< groupId> com.company.abc </groupId >
< artifactId> ConcurrencyTester </artifactId >
< version> 0.0.1-SNAPSHOT </version >
< dependencies>
< dependency>
< groupId> org.springframework </groupId >
< artifactId> spring</ artifactId >
< version> 2.5.6</ version >
</ dependency>
< dependency>
< groupId> netease.ddb </groupId >
< artifactId> db </artifactId >
< version> 4.5.1</ version >
< exclusions>
< exclusion>
< groupId> jta </groupId >
< artifactId> jta </artifactId >
</ exclusion>
</ exclusions>
</ dependency>
< dependency>
< groupId> javax.transaction </groupId >
< artifactId> jta </artifactId >
< version> 1.1</ version >
</ dependency>
< dependency>
< groupId> com.google.code.simple-spring-memcached </ groupId>
< artifactId> spymemcached </artifactId >
< version> 2.8.4</ version >
</ dependency>
< dependency>
< groupId> org.apache.ibatis </groupId >
< artifactId> ibatis- sqlmap</ artifactId>
< version> 2.3.4.726 </version >
</ dependency>
</ dependencies>
< build>
< plugins>
< plugin>
< groupId> org.fusesource.mvnplugins </groupId >
< artifactId> maven-graph- plugin</ artifactId>
< configuration>
</ configuration>
</ plugin>
</ plugins>
</ build>
</ project>
方法二:
mvn com.github.janssk1:maven-dependencygraph-plugin:1.0:graph
方法三:
ant -verbose resolve