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

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

commit 87de539ca3b9736d93113355dba19050fd2d67d8
Author: Claus Ibsen <[email protected]>
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 25b261d..0ed0576 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>

Reply via email to