This is an automated email from the ASF dual-hosted git repository. klease 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 66ae8383ccf CAMEL-19713: Fix logging by ensuring use of SLF4J 2.0 (#13916) 66ae8383ccf is described below commit 66ae8383ccf29aa3bfedb09efd3112d0b58ec564 Author: klease <38634989+kle...@users.noreply.github.com> AuthorDate: Wed Apr 24 14:39:51 2024 +0200 CAMEL-19713: Fix logging by ensuring use of SLF4J 2.0 (#13916) 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>