zoukankan      html  css  js  c++  java
  • Found duplicate classes/resources

    很可能是多个三方依赖重复了,依赖个插件,这个插件能查找出依赖关系,

    duplicate-finder-maven-plugin

    使用命令显示

    mvn dependency:tree

    [INFO]    - org.springframework.cloud:spring-cloud-bus:jar:2.0.0.RELEASE:compile
    [INFO]       +- org.springframework.cloud:spring-cloud-stream:jar:2.0.1.RELEASE:compile
    [INFO]       |  +- org.springframework.boot:spring-boot-starter-validation:jar:2.0.4.RELEASE:compile
    [INFO]       |  +- org.springframework:spring-messaging:jar:5.0.8.RELEASE:compile
    [INFO]       |  +- org.springframework:spring-tuple:jar:1.0.0.RELEASE:compile
    [INFO]       |  |  - com.esotericsoftware:kryo-shaded:jar:3.0.3:compile
    [INFO]       |  |     - com.esotericsoftware:minlog:jar:1.3.0:compile
    [INFO]       |  +- org.springframework.integration:spring-integration-tuple:jar:1.0.0.RELEASE:compile
    [INFO]       |  - org.springframework.retry:spring-retry:jar:1.2.2.RELEASE:compile
    [INFO]       - org.springframework.integration:spring-integration-core:jar:5.0.7.RELEASE:compile
    [INFO]          - io.projectreactor:reactor-core:jar:3.1.8.RELEASE:compile
    [INFO]             - org.reactivestreams:reactive-streams:jar:1.0.2:compile

    可以清楚看出依赖关系,

    然后在导入依赖的地方exclusion掉名字重复,没在用的就行.

  • 相关阅读:
    iscsi: 多路径
    Paxos算法分析
    ceph实践: 搭建环境
    ocfs2: 搭建环境
    设计模式:Context模式
    Ceph剖析:Leader选举
    Ceph剖析:定时器safetimer的实现
    nfs:环境搭建
    Ceph剖析:数据分布之CRUSH算法与一致性Hash
    Linux命令小结:crontab/netstat/iostat/sar
  • 原文地址:https://www.cnblogs.com/goblinn/p/11398647.html
Copyright © 2011-2022 走看看