Activemq dependency does not work with logback

At the moment when I run my program, the following appears on my console:

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]

As stated in the release here, "we don’t need to use the maven dependency exception command to not take an active part in the activemq slf4j-log4j12 artifact." I am not sure that I will follow this work now. Does this mean that I should use 5.10-SNAPSHOT? I was going to agree to activemq-core, as the answer to question , but I need materials released in 5.9.0, and the kernel only rises to 5.9. Hope someone can give me suggestions please. I really need some help.

+4
source share
1 answer

As a rule, if activemq-all does not meet your needs, start with the activemq-client banner.

The old activemq-broker banner has been cut into several parts in some versions.

You might need the JMS specifications:

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-jms_1.1_spec</artifactId>
    <version>1.1.1</version>
</dependency>
+2
source

Source: https://habr.com/ru/post/1530785/


All Articles