运行SpringBoot:SLF4J:Class路径的Eclipse包含多个SLF4J绑定

运行SpringBoot:SLF4J:Class路径的Eclipse包含多个SLF4J绑定,eclipse,spring-boot,maven,Eclipse,Spring Boot,Maven,每当我启动基于SpringBoot的应用程序(以Maven build/goal spring boot:run运行)时,我都会收到臭名昭著的SLF4J警告: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/U:/eclipse/eclipse-jee/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20

每当我启动基于SpringBoot的应用程序(以Maven build/goal spring boot:run运行)时,我都会收到臭名昭著的SLF4J警告:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/U:/eclipse/eclipse-jee/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/U:/eclipse/eclipse-jee/configuration/org.eclipse.osgi/8/0/.cp/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.slf4j.impl.SimpleLoggerFactory]
这个警告让我非常恼火,因为当从Eclipse演示应用程序时,潜在客户或用户看到的第一件事就是一个红色的多余警告。我讨厌那样!看起来太不专业了

现在-原则上警告是明确的:有两个SLF4J绑定,其中一个应该去掉其中一个。我找到了misc。对相同错误的描述,其中一些还解释了如何定位(通常是可传递的)依赖项,然后将其中一个从pom中的依赖项中排除

我试过了,这些建议中没有一个对我有效!此外,本报告还提出了解决方案 (即使用外部Maven安装)不起作用

仔细看看我声称的警告中列出的路径,eclipse本身已经有两个绑定(在插件org.eclipse.osgi…和org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar中)这可能解释了为什么我的尝试是徒劳的:破坏应用程序的pom不会改变关于这些Eclipse内部绑定的任何东西。上面提到的附件得出了相同的结论:这是eclipse中的一个bug

但是,有人知道需要什么来摆脱这个警告吗?我对各种“黑客”都很开放!例如,是否可以对…m2e.maven.runtime.的jar进行“按摩”,使其不再包含org/slf4j/impl/StaticLoggerBinder.class(或者更确切地说,它的包含jar)?还是有更好/更安全的方法?
在Eclipse中消除该警告需要什么呢?

对于我来说,这是一项工作。在Debian Linux中,我将/usr/share/maven添加到Window/Preferences/maven/Installations中,这些警告消失了。

正如我所写:我也尝试过。我的路径(在Windows 10上)指向“C:\Program Files\Apache\Maven”,但这些“SLF4J:类路径包含多个SLF4J绑定…”警告(如我的初始问题所示)仍然出现:-(