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:41:19 UTC
[camel] 02/02: 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.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9c81c2c52783fb23b437eb49c76d84cd1313785c
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 492ea8d..3986885 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>
<dependency>
<groupId>org.osgi</groupId>
@@ -59,6 +72,11 @@
<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>
<profiles>