Maven 删除多个slf4j绑定警告无效

Maven 删除多个slf4j绑定警告无效,maven,slf4j,Maven,Slf4j,我正在尝试删除java项目中的以下警告。我试图排除在maven repo上发现的其他绑定。但没有一个成功。任何解决这个问题的想法都是非常感谢的 SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/data/backup_concert/ase-core/com.aepona.iotp.parent/springboard-azure-parent/springboard-re

我正在尝试删除java项目中的以下警告。我试图排除在maven repo上发现的其他绑定。但没有一个成功。任何解决这个问题的想法都是非常感谢的

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/backup_concert/ase-core/com.aepona.iotp.parent/springboard-azure-parent/springboard-registry-app-azure/target/springboard-registry-app-azure-0.3.1-SNAPSHOT.jar!/BOOT-INF/lib/log4j-slf4j-impl-2.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/backup_concert/ase-core/com.aepona.iotp.parent/springboard-azure-parent/springboard-registry-app-azure/target/springboard-registry-app-azure-0.3.1-SNAPSHOT.jar!/BOOT-INF/lib/slf4j-simple-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 [org.apache.logging.slf4j.Log4jLoggerFactory]

很明显,您同时拥有log4j-slf4j-impl-2.7.jar和slf4j-simple-1.7.25.jar,请删除其中一个。

对依赖关系树的分析应该为您指明了正确的方向。如果您使用的是Maven,那么命令是mvn dependency:tree。您可能希望将输出添加到问题中以获得进一步帮助。

我已尝试将它们排除在pom.xml文件中。但问题仍然存在。@A.Vindya这是不可能的,你肯定在某个地方犯了一些错误。您可以在/data/backup_concert/ase core/com.aepona.iotp.parent/springboard-azure-parent/springboard-registry-app-azure/target/springboard-registry-app-azure-0.3.1-SNAPSHOT.jar中找到这两个jar/BOOT-INF/libI可以在路径中找到这些库。我正试图从pom文件中删除它们。我试着用下面这样的东西,但没用。org.slf4j slf4j simple@A.Vindya。你肯定错过了什么。使用mvn dependency:tree跟踪所有依赖项,您必须将其从依赖于它的所有依赖项中排除。您能告诉我怎么做吗?我试着用上面提到的方法来做。但它不起作用。提前谢谢。我已经添加了。你发布的树看起来不完整。