当两个不同版本的jar包,包含同一部分的时候,就会冲突
解决,排除一个
<exclusions> <exclusion> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclusion> </exclusions>
eg:
<dependency> <groupId>org.example</groupId> <artifactId>sh-dao</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.example</groupId> <artifactId>sh-common</artifactId> <version>1.0.0</version> <exclusions> <exclusion> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclusion> </exclusions> </dependency>
本文来自博客园,作者:阿霖找BUG,转载请注明原文链接:https://www.cnblogs.com/lin-07/p/17030812.html