【问题标题】:Dependency convergence from the same dependency来自同一依赖的依赖收敛
【发布时间】:2019-04-22 19:24:33
【问题描述】:

我有一个基于

的基本 Spring Boot/Cloud 应用程序
<spring-boot.version>1.5.17.RELEASE</spring-boot.version>
<spring-cloud.version>Camden.SR7</spring-cloud.version>

但我需要至少 1.3.x 的 spring-cloud-sleuth-zipkin。 通过导入 1.3.5.RELEASE 我得到一个奇怪的错误。 似乎相同的依赖关系会产生收敛。

这样容易解决吗?

[WARNING]
Dependency convergence error for io.zipkin.zipkin2:zipkin:2.7.1 paths to dependency are:
+-my-fancy-service:0.0.1-SNAPSHOT
  +-org.springframework.cloud:spring-cloud-sleuth-zipkin:1.3.5.RELEASE
    +-io.zipkin.zipkin2:zipkin:2.7.1
and
+-my-fancy-service:0.0.1-SNAPSHOT
  +-org.springframework.cloud:spring-cloud-sleuth-zipkin:1.3.5.RELEASE
    +-io.zipkin.reporter2:zipkin-reporter:2.5.0
      +-io.zipkin.zipkin2:zipkin:2.6.1
and
+-my-fancy-service:0.0.1-SNAPSHOT
  +-org.springframework.cloud:spring-cloud-sleuth-zipkin:1.3.5.RELEASE
    +-io.zipkin.reporter2:zipkin-sender-kafka11:2.5.0
      +-io.zipkin.zipkin2:zipkin:2.6.1
and
+-my-fancy-service:0.0.1-SNAPSHOT
  +-org.springframework.cloud:spring-cloud-sleuth-zipkin:1.3.5.RELEASE
    +-io.zipkin.reporter2:zipkin-sender-amqp-client:2.5.0
      +-io.zipkin.zipkin2:zipkin:2.6.1

【问题讨论】:

  • 通过从 Camden 升级到包含 1.3.5 的 Edgware 解决了这个问题(并解决了该开关周围的所有问题)。

标签: spring maven pom.xml dependency-management zipkin


【解决方案1】:

为 io.zipkin.zipkin2:zipkin:2.7.1 添加一个依赖管理条目

【讨论】:

    【解决方案2】:

    对于我或任何找到此主题的人: 通过从 Camden 升级到包含 1.3.5 的 Edgware 解决了这个问题(并解决了该开关周围的所有问题)。

    【讨论】:

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