You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2023/02/08 15:30:00 UTC

[jira] [Created] (ORC-1371) Remove unsupported SLF4J bindings from classpath

Stamatis Zampetakis created ORC-1371:
----------------------------------------

             Summary: Remove unsupported SLF4J bindings from classpath
                 Key: ORC-1371
                 URL: https://issues.apache.org/jira/browse/ORC-1371
             Project: ORC
          Issue Type: Task
          Components: build
            Reporter: Stamatis Zampetakis


Running {{./mvn clean install}} in orc/java on commit 32dffd30f747f7129b9b9b9a9ef8022660b28b5a shows many warning messages of the following form.
{noformat}
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/home/stamatis/.m2/repository/org/slf4j/slf4j-log4j12/1.7.10/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Ignoring binding found at [jar:file:/home/stamatis/.m2/repository/ch/qos/logback/logback-classic/1.2.10/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
{noformat}
ORC uses slf4j-api version at 2.0.6 that is not compatible with:
 * slf4j-log4j12/1.7.10 (coming transitively from hadoop)
 * logback-classic/1.2.10 (coming transitively from zookeeper)

thus the respective jars should not be in the classpath.

Adding the necessary exclusions in the pom file fixes the problem and makes the warnings disappear.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)