【问题标题】:mvn validate throws Dependency convergence error but mvn dependency:tree does not show the dependencymvn validate 引发依赖收敛错误,但 mvn dependency:tree 不显示依赖
【发布时间】:2016-11-25 10:40:51
【问题描述】:

mvn validate 失败抛出依赖错误。

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 版本:1.8.0_101,供应商:甲骨文公司

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5

【问题讨论】:

  • 看起来它正在尝试解决其自身的先前版本..?很奇怪,可能依赖pom有问题

标签: java maven-3


【解决方案1】:

试试这个。它应该在您的项目中显示该依赖项的不同路径:

mvn dependency:tree -Dverbose=true

【讨论】:

    猜你喜欢
    • 2014-08-20
    • 2016-08-12
    • 2023-03-31
    • 2015-02-10
    • 2018-03-06
    • 2021-10-29
    • 2016-09-24
    • 1970-01-01
    • 2018-01-05
    相关资源
    最近更新 更多