查看冲突
工程目录下cmd执行,查看commons-logging相关包
mvn dependency:tree -Dverbose -Dincludes=commons-logging
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.2.0</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</exclusion>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
</dependency>
注:lib引入的可以执行,maven引用的或者类找不到,其实类已经引用了,或者
org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory
signer information does not match signer information of other classes in the
等等,都是jar包版本不同导致的冲突,有时maven无法找到冲突jar,只能一个个引用,试验,若是冲突jar太多只能另起一个工程打包发布。