项目种RPC调用,引入服务方的jar包依赖不规范时,引入后会存在很多的包冲突
依赖搜索
使用maven-help查看项目中是否有某个jar包
jar包树打印
在项目的根目录执行:
mvn dependency:tree -U -Dverbose
排除
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
或者
<exclusions>
<exclusion>
<groupId>com.xxx.example</groupId>
<artifactId>com.csd.ds.*</artifactId>
</exclusion>
</exclusions>