Found duplicate classes/resources
2024-09-05 17:24:57
很可能是多个三方依赖重复了,依赖个插件,这个插件能查找出依赖关系,
duplicate-finder-maven-plugin
使用命令显示
mvn dependency:tree
[INFO] \- org.springframework.cloud:spring-cloud-bus:jar:2.0..RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-stream:jar:2.0..RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.0..RELEASE:compile
[INFO] | +- org.springframework:spring-messaging:jar:5.0..RELEASE:compile
[INFO] | +- org.springframework:spring-tuple:jar:1.0..RELEASE:compile
[INFO] | | \- com.esotericsoftware:kryo-shaded:jar:3.0.:compile
[INFO] | | \- com.esotericsoftware:minlog:jar:1.3.:compile
[INFO] | +- org.springframework.integration:spring-integration-tuple:jar:1.0..RELEASE:compile
[INFO] | \- org.springframework.retry:spring-retry:jar:1.2..RELEASE:compile
[INFO] \- org.springframework.integration:spring-integration-core:jar:5.0..RELEASE:compile
[INFO] \- io.projectreactor:reactor-core:jar:3.1..RELEASE:compile
[INFO] \- org.reactivestreams:reactive-streams:jar:1.0.:compile
可以清楚看出依赖关系,
然后在导入依赖的地方exclusion掉名字重复,没在用的就行.
最新文章
- html页面制作css基本设置
- ORACLE外部表总结
- js localStorage 设置和取值
- storm基础系列之二----zookeeper的作用
- Lua 5.2 编译 For Windows
- ASP.NET WebForm中用async/await实现异步出人意料的简单
- MSYS2 安装和配置
- 初识 AutoLayout
- 第1章 开发环境安装和配置(二)安装JDK、SDK、NDK
- poj2350
- PigCms 回复消息 ";域名授权错误! 您使用的微信平台或源码为盗版";
- Flume+LOG4J+Kafka
- js遍历数组对象和非数组对象
- Java之路上,让我们Stand Up Again
- 芝麻HTTP:Scrapy-Splash的安装
- may be a diary?
- pdf.js 使用实例(app直接预览pdf格式的文档)
- WebViewJavascriptBridge的使用说明
- Go并发编程实战 (郝林 著)
- bzoj千题计划294:bzoj3139: [Hnoi2013]比赛