You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by kl...@apache.org on 2024/04/24 10:52:40 UTC
(camel) 01/01: CAMEL-19713: Fix logging by ensuring use of SLF4J 2.0 The org.wildfly.security:wildfly-elytron jar dependency of camel-elytron includes the SLF4J 1.x classes and there was a logback provider in the classpath.
This is an automated email from the ASF dual-hosted git repository.
klease pushed a commit to branch CAMEL-19713
in repository https://gitbox.apache.org/repos/asf/camel.git
commit ef1aea91c8647fc113bc86d615bafe2b8e378c62
Author: klease <kl...@cegetel.net>
AuthorDate: Wed Apr 24 12:49:04 2024 +0200
CAMEL-19713: Fix logging by ensuring use of SLF4J 2.0
The org.wildfly.security:wildfly-elytron jar dependency of camel-elytron includes
the SLF4J 1.x classes and there was a logback provider in the classpath.
---
dsl/camel-endpointdsl/pom.xml | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/dsl/camel-endpointdsl/pom.xml b/dsl/camel-endpointdsl/pom.xml
index a046848d434..f3edae4f7b4 100644
--- a/dsl/camel-endpointdsl/pom.xml
+++ b/dsl/camel-endpointdsl/pom.xml
@@ -58,6 +58,11 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-core-engine</artifactId>
</dependency>
+ <!-- Put this dependency first to ensure use of the 2.x SLF4J API -->
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-allcomponents</artifactId>
@@ -109,10 +114,6 @@
<artifactId>camel-catalog</artifactId>
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
<!-- testing -->
<dependency>
@@ -223,13 +224,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <!--
- See CAMEL-19713.
-
- These tests generate a lot of bogus output and the logging does not work.
- This forces the output to be stored in separate files in the target directory.
- -->
- <redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
<visibleassertions.silence>true</visibleassertions.silence>
</systemPropertyVariables>