Browsermob Proxy Maven依赖收敛错误

时间:2015-07-01 18:46:24

标签: maven dependency-injection dependencies dependency-management

我是maven的新手,我收到了一些对我没有意义的依赖性收敛错误。我得到的错误是

[ERROR] 
Dependency convergence error for io.netty:netty-all:4.0.23.Final paths to dependency are:
+-example:framework:1.0.0-SNAPSHOT
  +-net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1
    +-net.lightbody.bmp:littleproxy:1.1.0-beta-bmp-5
      +-io.netty:netty-all:4.0.23.Final
and
+-example:framework:1.0.0-SNAPSHOT
  +-net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1
    +-io.netty:netty-all:4.0.27.Final

[ERROR] 
Dependency convergence error for com.google.guava:guava:18.0 paths to dependency are:
+-example:framework:1.0.0-SNAPSHOT
  +-net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1
    +-net.lightbody.bmp:browsermob-core:2.1.0-beta-1
      +-com.google.guava:guava:18.0
and
+-example:framework:1.0.0-SNAPSHOT
  +-net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1
    +-net.lightbody.bmp:littleproxy:1.1.0-beta-bmp-5
      +-com.google.guava:guava:14.0.1

[ERROR] 
Dependency convergence error for com.fasterxml.jackson.core:jackson-annotations:2.4.0 paths to dependency are:
+-example:framework:1.0.0-SNAPSHOT
  +-net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1
    +-net.lightbody.bmp:browsermob-core:2.1.0-beta-1
      +-com.fasterxml.jackson.core:jackson-databind:2.4.4
        +-com.fasterxml.jackson.core:jackson-annotations:2.4.0
and
+-example:framework:1.0.0-SNAPSHOT
  +-net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1
    +-net.lightbody.bmp:browsermob-core:2.1.0-beta-1
      +-com.fasterxml.jackson.core:jackson-annotations:2.4.4

他们让我感到困惑,因为它看起来像是他们都是从同一个依赖关系发芽的,这是否意味着net.lightbody.bmp:browsermob-core-littleproxy:2.1.0-beta-1被打破了?

    <dependency>
        <groupId>net.lightbody.bmp</groupId>
        <artifactId>browsermob-core-littleproxy</artifactId>
        <version>2.1.0-beta-1</version>
        <scope>test</scope>
    </dependency>

1 个答案:

答案 0 :(得分:0)

仍然受到同一个包中的冲突的困扰,但我设法通过从bmp依赖项中排除冲突的依赖项,然后在我的项目中明确地将新版本的#s作为依赖项来修复它。