fabric8io / fabric8-generator

a jboss forge add on for the fabric8 upstream and SaaS generator wizards
Apache License 2.0
1 stars 12 forks source link

Slf4j error while running tests and deploying addon #18

Open gastaldi opened 7 years ago

gastaldi commented 7 years ago

While running any test, the following output is presented:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/ggastald/.m2/repository/org/infinispan/infinispan-embedded/9.0.0.CR2/infinispan-embedded-9.0.0.CR2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ggastald/.m2/repository/org/slf4j/slf4j-jdk14/1.7.12/slf4j-jdk14-1.7.12.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 [org.jboss.slf4j.JBossLoggerFactory]

Although this looks harmless, it may impact the addon from functioning properly in some cases.

A possible solution is to avoid using the infinispan-embedded JAR since it contains SLF4j classes and use infinispan-cdi-embedded (or a similar dependency) instead