繁体   English   中英

Htmlunit Maven依赖出现slf4j错误

[英]slf4j error with Htmlunit Maven dependency

在Htmlunit的以下Maven依赖关系下,

<dependency>
    <groupId>net.sourceforge.htmlunit</groupId>
    <artifactId>htmlunit</artifactId>
    <version>2.18</version>
</dependency> 

我收到以下错误,

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/mnkb/.m2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/mnkb/.m2/repository/org/apache/activemq/activemq-all/5.12.0/activemq-all-5.12.0.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]

在我的pom.xml中,我甚至注释了以下依赖项,

<!-- <dependency>
            <groupId>com.mattbertolini</groupId>
            <artifactId>liquibase-slf4j</artifactId>
            <version>${liquibase-slf4j.version}</version>
        </dependency> -->

activemq-all依赖性似乎是一个包含slf4j的uberjar。 其他一些依赖性似乎也将slf4j引入了。 这就是为什么您会收到此错误。 如果您可以尝试摆脱activemq-all依赖性,则可以使用activemq-core 似乎与ActiveMQ的包装有关(请参阅https://issues.apache.org/jira/browse/AMQ-5009 )。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM