记一次jar包依赖冲突解决过程

使用intellij,在启动项目时发现jar包依赖

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/deploy/apache-maven-3.5.3/repository/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/deploy/apache-maven-3.5.3/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.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]

在网上搜索,说是jar包依赖导致的,应该在某些引用的jar包中排除SLF4J依赖,可从pom界面,查看依赖关系图,搜索jar包并执行exclusion操作,但操作过后依然没有排除掉,于是使用以下命令行查找maven依赖,并手动排除掉依赖

查看依赖关系
mvn dependency:tree

你可能感兴趣的:(记一次jar包依赖冲突解决过程)