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/13 14:38:30 UTC

[camel] 03/03: 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 camel-3.11.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 9144bc0ce428cba5f14937aa3c32bb2137934677
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Dec 13 15:36:05 2021 +0100

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

diff --git a/components/camel-corda/pom.xml b/components/camel-corda/pom.xml
index 9abc5ba..41b9f65 100644
--- a/components/camel-corda/pom.xml
+++ b/components/camel-corda/pom.xml
@@ -40,6 +40,19 @@
         <dependency>
             <groupId>net.corda</groupId>
             <artifactId>corda-rpc</artifactId>
+            <!-- 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 -->
+            <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>
+            <version>${log4j2-version}</version>
         </dependency>
 
         <!-- for testing -->
@@ -53,5 +66,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>