公司对接第三方,只能引入第三方的jar包,但是产生了依赖冲突
在IDEA右侧的maven中也无法查看此三方的jar包引入了哪些maven依赖,所以我一直找不到是哪个包的问题
报错信息如下所示:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/Inspur/InspurCode/ihs-platform/ihs-platform/ihs-platform-tools/libs/masmgc.sdk.sms-1.0.3-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/Soft/Maven/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.util.Assert.isInstanceOf(Ljava/lang/Class;Ljava/lang/Object;Ljava/util/function/Supplier;)V
也像下面一样排除了一些依赖,但是还不行
<dependency>
<groupId>masmgc-sdk-sms</groupId>
<artifactId>masmgc.sdk.sms</artifactId>
<version>1.0.3</version>
<scope>system</scope>
<systemPath>${basedir}/libs/masmgc.sdk.sms-1.0.3-SNAPSHOT.jar</systemPath>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-parent</artifactId>
</exclusion>
</exclusions>
</dependency>