2014-04-17 324 views
0

当我运行的依赖性:在我的pom.xml树是我得到以下输出:依赖关系:解决和:树解决不同的依赖关系?

... 
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ com.test.client --- 
[INFO] assemblies:com.test.client:jar:1.0.0-SNAPSHOT 
[INFO] +- foundation:com.test.core:jar:1.0.0:compile 
[INFO] | \- junit:junit:jar:4.11:compile 
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:compile 
[INFO] \- assemblies:com.test.security:jar:1.0.0-SNAPSHOT:compile 
... 

当我运行的依赖:解决同一POM我得到:

... 
[INFO] The following files have been resolved: 
[INFO] assemblies:com.test.security:jar:1.0.0-SNAPSHOT:compile 
[INFO] foundation:com.test.core:jar:1.0.1-SNAPSHOT:compile 
[INFO] junit:junit:jar:4.11:compile 
[INFO] org.hamcrest:hamcrest-core:jar:1.3:compile 
... 

为什么版本com.test.core不同:resolve和:tree?

回答

0

这似乎是Maven 3.0.4中的一个错误。我更新到3.2.1版,现在依赖关系:树和:解决方案解决了相同的依赖关系。