Maven错误:Maven不支持实际使用的SLF4J绑定

时间:2017-03-16 21:03:02

标签: java maven slf4j

每当我在Maven中运行目标时,我看到的前几行是:

Mar 16, 2017 4:48:22 PM org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration activate
WARNING: The SLF4J binding actually used is not supported by Maven: org.slf4j.impl.JDK14LoggerFactory
Mar 16, 2017 4:48:22 PM org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration activate
WARNING: Maven supported bindings are:
Mar 16, 2017 4:48:22 PM org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration activate
WARNING: (from jar:file:/usr/local/bin/maven/lib/maven-embedder-3.3.9.jar!/META-INF/maven/slf4j-configuration.properties)
- ch.qos.logback.classic.LoggerContext
- org.slf4j.helpers.Log4jLoggerFactory
- org.slf4j.impl.SimpleLoggerFactory

寻找解决方案让我看到post,建议更改maven-embedder-3.3.9.jar。我试过更改JAR导致Maven处于完全无法使用的状态(这个error)。

正如Maven现在所说,我认为这个bug不仅会在输出的开头打印警告,而且还会在每行之前添加一个时间戳,后跟Slf4Logger,如下所示:

Mar 16, 2017 4:48:26 PM org.apache.maven.cli.logging.Slf4jLogger info
INFO: +- log4j:log4j:jar:1.2.14:compile
Mar 16, 2017 4:48:26 PM org.apache.maven.cli.logging.Slf4jLogger info
INFO: +- org.jsoup:jsoup:jar:1.8.3:compile
Mar 16, 2017 4:48:26 PM org.apache.maven.cli.logging.Slf4jLogger info
INFO: +- dom4j:dom4j:jar:1.6.1:compile
Mar 16, 2017 4:48:26 PM org.apache.maven.cli.logging.Slf4jLogger info
INFO: |  \- xml-apis:xml-apis:jar:1.0.b2:compile

还有其他人处理过这个问题吗?还有其他修复方法吗?

0 个答案:

没有答案