Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1214

Multiple versions of slf4j-jboss-logmanager on the classpath

XMLWordPrintable

    • +

      It appears there are multiple versions of the slf4j-jboss-logmanager on the classpath: the productized one and the original community one. That results in warnings like:

      [aloubyansky@localhost product-app]$ mvn quarkus:dev
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ---------------------< org.acme:code-with-quarkus >---------------------
      [INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] --- quarkus-maven-plugin:2.2.0.CR1-redhat-00003:dev (default-cli) @ code-with-quarkus ---
      [INFO] Invoking com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.0.CR1-redhat-00003:generate-code @ code-with-quarkus
      [INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:resources @ code-with-quarkus
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile @ code-with-quarkus
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to /home/aloubyansky/playground/product-app/target/classes
      [INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:testResources @ code-with-quarkus
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/aloubyansky/playground/product-app/src/test/resources
      [INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile @ code-with-quarkus
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 2 source files to /home/aloubyansky/playground/product-app/target/test-classes
      Listening for transport dt_socket at address: 5005
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/home/aloubyansky/.m2/repository/org/jboss/slf4j/slf4j-jboss-logmanager/1.1.0.Final/slf4j-jboss-logmanager-1.1.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/home/aloubyansky/.m2/repository/org/jboss/slf4j/slf4j-jboss-logmanager/1.1.0.Final-redhat-00001/slf4j-jboss-logmanager-1.1.0.Final-redhat-00001.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.slf4j.impl.Slf4jLoggerFactory]
      __ ____ __ _____ ___ __ ____ ______ 
       --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ 
       -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \ 
      --\___\_\____/_/ |_/_/|_/_/|_|\____/___/ 
       Powered by Quarkus 2.2.0.CR1-redhat-00003
      2021-08-31 08:50:00,978 INFO [io.quarkus] (Quarkus Main Thread) code-with-quarkus 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.2.0.CR1-redhat-00003) started in 0.938s. Listening on: http://localhost:8080
      2021-08-31 08:50:00,981 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
      2021-08-31 08:50:00,981 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy, smallrye-context-propagation]
      --
      Tests paused
      Press [r] to resume testing, [o] Toggle test output, [h] for more options>
      

            hamadhan@redhat.com Harsh Madhani
            olubyans@redhat.com Alexey Loubyansky
            Jose Carvajal Hilario Jose Carvajal Hilario
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: