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/10 18:45:57 UTC

[camel] branch main updated: CAMEL-17316: camel-corda - 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 3e39e43  CAMEL-17316: camel-corda - Remove log4j-core dependency as only log4j-api is needed.
3e39e43 is described below

commit 3e39e434f9945d3845b7542aa840171fb4c017f1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Dec 10 16:48:48 2021 +0100

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

diff --git a/components/camel-corda/pom.xml b/components/camel-corda/pom.xml
index 8765bf9..2a989f3 100644
--- a/components/camel-corda/pom.xml
+++ b/components/camel-corda/pom.xml
@@ -42,6 +42,12 @@
             <artifactId>corda-rpc</artifactId>
             <version>${corda-version}</version>
             <exclusions>
+                <!-- corda-rpc uses log4j for logging (only need log4j-api at runtime)
+                     but we need to exclude log4j-core and add log4j-api as dependency --> 
+                <exclusion>
+                    <groupId>org.apache.logging.log4j</groupId>
+                    <artifactId>log4j-core</artifactId>
+                </exclusion>
                 <exclusion>
                     <groupId>com.google.code.findbugs</groupId>
                     <artifactId>jsr305</artifactId>
@@ -60,6 +66,10 @@
                 </exclusion>
             </exclusions>
         </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-api</artifactId>
+        </dependency>
 
         <!-- for testing -->
         <dependency>
@@ -72,5 +82,10 @@
             <artifactId>mockito-junit-jupiter</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j-impl</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>