aboutsummaryrefslogtreecommitdiffstats
path: root/zkfacade
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2021-07-05 14:06:57 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2021-07-05 14:33:56 +0200
commit6cbbd90a0d46dd5ac15b20e61278e66e23b115fb (patch)
tree6c729510624a7dcbcdf5a3b7f70822a31a7ecfc2 /zkfacade
parent1ecd90b29e762d8686dd637bc96925a3cd147684 (diff)
Remove duplicate embedding of log libraries
Embedding log libraries in bundles results in various warnings being printed to stderr.
Diffstat (limited to 'zkfacade')
-rw-r--r--zkfacade/pom.xml40
1 files changed, 30 insertions, 10 deletions
diff --git a/zkfacade/pom.xml b/zkfacade/pom.xml
index 25cc678fe66..7140c490460 100644
--- a/zkfacade/pom.xml
+++ b/zkfacade/pom.xml
@@ -50,6 +50,12 @@
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
@@ -57,19 +63,27 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-jdk14</artifactId>
- </dependency>
- <dependency>
- <!-- Needed to have the same version as slf4j-api -->
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
- <dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zookeeper.client.version}</version>
+ <exclusions>
+ <!--
+ Container provides wiring for all common log libraries
+ Duplicate embedding results in various warnings being printed to stderr
+ -->
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<!-- snappy-java and metrics-core are included here
to be able to work with ZooKeeper 3.6.2 due to
@@ -79,6 +93,12 @@
<artifactId>metrics-core</artifactId>
<scope>compile</scope>
<version>3.2.5</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.xerial.snappy</groupId>