gpt4 book ai didi

java - mvn依赖:tree return nothing but build success

转载 作者:行者123 更新时间:2023-12-02 02:43:11 25 4
gpt4 key购买 nike

我正在寻找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

关于java - mvn依赖:tree return nothing but build success,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45085274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com