Skip to content

Commit

Permalink
CAMEL-19713: Fix logging by ensuring use of SLF4J 2.0 (#13916)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
klease authored Apr 24, 2024
1 parent d5bb5aa commit 66ae838
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions dsl/camel-endpointdsl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -109,10 +114,6 @@
<artifactId>camel-catalog</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- testing -->
<dependency>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 66ae838

Please sign in to comment.