You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/12/11 08:14:00 UTC

[camel] branch main updated: CAMEL-17316: camel-nsq - Remove log4j-core dependency as only log4j-api is needed.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new b2a8a4a  CAMEL-17316: camel-nsq - Remove log4j-core dependency as only log4j-api is needed.
b2a8a4a is described below

commit b2a8a4aae398339a991f4fed9faea3951e51a55c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Dec 11 09:13:14 2021 +0100

    CAMEL-17316: camel-nsq - Remove log4j-core dependency as only log4j-api is needed.
---
 components/camel-nsq/pom.xml | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/components/camel-nsq/pom.xml b/components/camel-nsq/pom.xml
index 039a0a4..cc30455 100644
--- a/components/camel-nsq/pom.xml
+++ b/components/camel-nsq/pom.xml
@@ -29,26 +29,38 @@
     <packaging>jar</packaging>
     <name>Camel :: NSQ</name>
 
-    <properties>
-    </properties>
-
     <dependencies>
+
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-support</artifactId>
         </dependency>
+
         <!-- nsq client -->
         <dependency>
             <groupId>com.github.brainlag</groupId>
             <artifactId>nsq-client</artifactId>
             <version>${nsq-client-version}</version>
+            <!-- only log4j-api is needed but nsq-client depends on log4j-core -->
+            <exclusions>
+                <exclusion>
+                    <groupId>org.apache.logging.log4j</groupId>
+                    <artifactId>log4j-core</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-api</artifactId>
         </dependency>
+
         <!-- testing -->
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-test-junit5</artifactId>
             <scope>test</scope>
         </dependency>
+
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>