我正在寻找
aspectjrt
中的任何依赖项冲突,但是当我运行 mvn dependency:tree
命令时,它只显示 Build Success
,但我可以清楚地看到 pom.xml 中声明的依赖项
mvn dependency:tree -Dverbose -Dincludes=aspectjrt > maven.tree.txt
pom.xml
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.7.3</version>
</dependency>
结果
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MySmallApplication-1.10.war
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ MySmallApplication ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.912 s
[INFO] Finished at: 2017-07-13T11:21:43-04:00
[INFO] Final Memory: 20M/436M
[INFO] ------------------------------------------------------------------------
我能做些什么来解决这个问题吗?
查看有关 -Dincludes
的文档您应该使用以下格式:
[groupId]:[artifactId]:[type]:[version]
尝试运行这样的东西:
$ mvn dependency:tree -Dverbose -Dincludes=org.aspectj:aspectjrt:jar:1.7.3 > maven.tree.txt