Skip to content

Commit 1348abb

Browse files
committed
[KYUUBI #3287] Exclude reload4j from hadoop-minikdc
### _Why are the changes needed?_ HADOOP-18088 replaces log4j 1.x with reload4j, we should exclude it becuase we are using log4j2, otherwise slf4j complains ``` SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/chengpan/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.18.0/log4j-slf4j-impl-2.18.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/chengpan/.m2/repository/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.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.apache.logging.slf4j.Log4jLoggerFactory] ``` ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3287 from pan3793/reload4j. Closes #3287 60930d7 [Cheng Pan] Exclude reload4j from hadoop-minikdc Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org> (cherry picked from commit 4ee8171) Signed-off-by: Cheng Pan <chengpan@apache.org>
1 parent 9d83e63 commit 1348abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@
10851085
<exclusions>
10861086
<exclusion>
10871087
<groupId>org.slf4j</groupId>
1088-
<artifactId>slf4j-log4j12</artifactId>
1088+
<artifactId>*</artifactId>
10891089
</exclusion>
10901090
<exclusion>
10911091
<groupId>junit</groupId>

0 commit comments

Comments
 (0)