当两个不同版本的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>
标签:1.0,projectlombok,sh,冲突,版本,org,lombok,example From: https://www.cnblogs.com/lin-07/p/17030812.html