mvn依赖:树只返回构建成功

时间:2017-07-13 15:33:32

标签: java spring maven

我正在寻找Array=[1,2,3,"abc","def","ghi",4,"jkl",5,6,"mno","pq","r","s","tu","v",2,4,55,"wx","yz"] 中的任何依赖冲突,但是当我运行[ [1,2,3,"abc","def","ghi"], [4,"jkl"], [5,6,"mno","pq","r","s","tu","v"], [2,4,55,"wx","yz"] ] 命令时,它只显示aspectjrt,但我可以清楚地看到pom.xml中声明的依赖项< / p>

mvn dependency:tree

的pom.xml

Build Success

结果

mvn dependency:tree -Dverbose -Dincludes=aspectjrt > maven.tree.txt

我能做些什么来解决这个问题吗?

1 个答案:

答案 0 :(得分:2)

查看有关-Dincludes

的文档

您应该使用以下格式:[groupId]:[artifactId]:[type]:[version]

尝试运行以下内容:

$ mvn dependency:tree -Dverbose -Dincludes=org.aspectj:aspectjrt:jar:1.7.3 > maven.tree.txt