gpt4 book ai didi

java - mvn 验证抛出依赖收敛错误,但 mvn 依赖 :tree does not show the dependency

转载 作者:行者123 更新时间:2023-12-01 09:12:58 25 4
gpt4 key购买 nike

mvn 验证失败并抛出依赖错误。

Dependency convergence error for com.company.concepts:patients:2.4.14-SNAPSHOT paths to dependency are:
+-com.company.ion.concepts.patientlist:patient-list:1.4-SNAPSHOT
+-com.company.concepts:patientlists:2.3.15-SNAPSHOT
+-com.company.concepts:patients:2.4.14-SNAPSHOT
and
+-com.company.ion.concepts.patientlist:patient-list:1.4-SNAPSHOT
+-com.company.concepts:patientlists:2.3.15-SNAPSHOT
+-com.company.concepts:patients:2.4.14-SNAPSHOT
+-com.company.concepts:patients:2.4.4-Alpha-5

然后我运行了 mvn dependency:tree 来查看我是否在任何地方使用 2.4.4-Aplha-5 但没有在任何地方找到它。

[INFO] +- com.company.concepts:patientlists:jar:2.3.15-SNAPSHOT:compile
[INFO] | +- com.company.concepts:patients:jar:2.4.14-SNAPSHOT:compile
[INFO] | | +- com.company.xyz.common:xyz-common-demographic-proteus:jar:3.1:compile

我已经尝试了所有可能的方法,但无法找到解决方案。

我正在使用

maven-enforcer-plugin:1.4.1:enforce

Java version: 1.8.0_101, vendor: Oracle Corporation

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5

最佳答案

尝试用这个代替。它应该显示项目中该依赖项的不同路径:

mvn dependency:tree -Dverbose=true

关于java - mvn 验证抛出依赖收敛错误,但 mvn 依赖 :tree does not show the dependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40803035/

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