In the case of jar conflicts, it is convenient and concise to resolve jar package conflicts by using Eclipse, the steps are as follows
1. Open Pom.xml in Eclipse and select "Dependency Hierarchy"
2, in the Filter input box, enter the conflicting jar, for example: slf4j
3. The right side will show all the jar packages that depend on this package
4. If you need to exclude conflicts, you can right-click: Select Exclude Maven artifact ...
After doing this, MAVEN's dependencies are as follows (as listed below:)
Before exclusion:
<dependency> <groupId>com.github.miemiedev</groupId> <artifactId> mybatis-paginator</artifactid> <version>1.2.15</version> </dependency>
After exclusion:
<dependency> <groupId>com.github.miemiedev</groupId> <artifactId> mybatis-paginator</artifactid> <version>1.2.15</version> <exclusions> < exclusion> <artifactId>slf4j-api</artifactId> <groupId>org.slf4j</groupId> </exclusion> </exclusions> </dependency>
Maven resolves jar package conflicts