【发布时间】:2014-03-09 14:57:09
【问题描述】:
在我运行程序的那一刻,我在控制台中得到以下信息:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/.m2/repository/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/.m2/repository/org/apache/activemq/activemq-all/5.9.0/activemq-all-5.9.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]
正如问题here 中所述,“我们无法使用 maven 依赖排除命令来不获取 activemq-all 贡献的 slf4j-log4j12 工件。” 我不确定我现在是否遵循它的工作。这是否意味着我必须使用 5.10-SNAPSHOT?我打算像这个question 中的答案一样满足于activemq-core,但我需要在5.9.0 中发布的东西,并且核心只升级到5.9。我希望有人可以给我建议。我真的需要帮助。
【问题讨论】:
标签: java maven dependencies activemq slf4j