You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/01/18 12:35:30 UTC

[camel-examples] 02/03: CAMEL-18939 - camel-examples - Migrate to logger 2 in v2

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git

commit 3a38c911354fd4025c17d5f3eaf026ae947668e7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jan 18 13:31:26 2023 +0100

    CAMEL-18939 - camel-examples - Migrate to logger 2 in v2
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 examples/aggregate-dist/pom.xml           |  6 ------
 examples/aggregate/pom.xml                |  6 ------
 examples/any23/pom.xml                    | 14 +++++++++++---
 examples/as2/pom.xml                      | 15 +++++++++------
 examples/basic/pom.xml                    |  6 ------
 examples/bigxml-split/pom.xml             |  5 -----
 examples/cafe-endpointdsl/pom.xml         |  6 ------
 examples/cafe/pom.xml                     |  6 ------
 examples/cassandra-kubernetes/pom.xml     | 19 ++++++++-----------
 examples/console/pom.xml                  |  6 ------
 examples/couchbase-log/pom.xml            | 14 ++++++++------
 examples/csimple-joor/pom.xml             | 14 ++++++++------
 examples/csimple/pom.xml                  | 14 ++++++++------
 examples/debezium-eventhubs-blob/pom.xml  |  5 -----
 examples/debezium/pom.xml                 |  5 -----
 examples/flight-recorder/pom.xml          | 14 ++++++++------
 examples/ftp/pom.xml                      |  5 -----
 examples/hazelcast-kubernetes/pom.xml     | 19 ++++++++-----------
 examples/java8/pom.xml                    |  6 ------
 examples/jdbc/pom.xml                     |  6 ------
 examples/jmx/pom.xml                      |  6 ------
 examples/jooq/pom.xml                     |  6 ------
 examples/kafka/pom.xml                    |  5 -----
 examples/kamelet-chucknorris/pom.xml      | 14 +++++---------
 examples/kamelet-main/pom.xml             | 14 +++++---------
 examples/kamelet-sql/pom.xml              | 14 +++++---------
 examples/kamelet/pom.xml                  | 14 +++++---------
 examples/kotlin/pom.xml                   |  7 ++-----
 examples/loadbalancing/pom.xml            |  7 ++-----
 examples/main-endpointdsl/pom.xml         | 14 ++++++++------
 examples/main-health/pom.xml              | 14 +++++---------
 examples/main-joor/pom.xml                | 14 +++++---------
 examples/main-lambda/pom.xml              | 14 +++++---------
 examples/main-tiny/pom.xml                | 14 ++++++++------
 examples/main-xml/pom.xml                 | 15 ++++++---------
 examples/main-yaml/pom.xml                | 15 ++++++---------
 examples/main/pom.xml                     | 14 +++++---------
 examples/mapstruct/pom.xml                | 14 +++++---------
 examples/minio/pom.xml                    | 14 ++++++++------
 examples/mongodb/pom.xml                  | 14 +++++++++++---
 examples/netty-custom-correlation/pom.xml | 12 ++----------
 examples/oaipmh/pom.xml                   | 14 +++++++++++---
 examples/reactive-executor-vertx/pom.xml  | 12 ------------
 examples/resume-api/pom.xml               |  8 +++++++-
 examples/routeloader/pom.xml              | 14 +++++---------
 examples/routes-configuration/pom.xml     | 14 +++++---------
 examples/routetemplate-xml/pom.xml        | 14 +++++---------
 examples/routetemplate/pom.xml            | 14 +++++---------
 examples/salesforce-consumer/pom.xml      | 14 +++++++++++---
 examples/splunk/pom.xml                   |  5 -----
 examples/spring-pulsar/pom.xml            | 12 ++----------
 examples/spring-security/pom.xml          |  6 ------
 examples/spring-xquery/pom.xml            |  6 ------
 examples/spring/pom.xml                   |  6 ------
 examples/telegram/pom.xml                 | 14 +++++++++++---
 examples/transformer-demo/pom.xml         |  9 +++------
 examples/whatsapp/pom.xml                 | 14 +++++++++++---
 57 files changed, 242 insertions(+), 380 deletions(-)

diff --git a/examples/aggregate-dist/pom.xml b/examples/aggregate-dist/pom.xml
index 46b715b3..2234ae94 100644
--- a/examples/aggregate-dist/pom.xml
+++ b/examples/aggregate-dist/pom.xml
@@ -85,12 +85,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/aggregate/pom.xml b/examples/aggregate/pom.xml
index 0f26aebc..27396deb 100644
--- a/examples/aggregate/pom.xml
+++ b/examples/aggregate/pom.xml
@@ -68,12 +68,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/any23/pom.xml b/examples/any23/pom.xml
index 07bf933d..ed13b7cf 100644
--- a/examples/any23/pom.xml
+++ b/examples/any23/pom.xml
@@ -67,10 +67,18 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-any23</artifactId>
         </dependency>
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/as2/pom.xml b/examples/as2/pom.xml
index e4d94462..7c0708ba 100644
--- a/examples/as2/pom.xml
+++ b/examples/as2/pom.xml
@@ -75,15 +75,18 @@
             <artifactId>camel-test-spring-junit5</artifactId>
         </dependency>
 
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>${slf4j-api-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/basic/pom.xml b/examples/basic/pom.xml
index eda4808d..0e4861e7 100644
--- a/examples/basic/pom.xml
+++ b/examples/basic/pom.xml
@@ -57,12 +57,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <scope>runtime</scope>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/bigxml-split/pom.xml b/examples/bigxml-split/pom.xml
index af11a9aa..469bc6e9 100644
--- a/examples/bigxml-split/pom.xml
+++ b/examples/bigxml-split/pom.xml
@@ -73,11 +73,6 @@
             <artifactId>woodstox-core</artifactId>
             <version>${woodstox-version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/cafe-endpointdsl/pom.xml b/examples/cafe-endpointdsl/pom.xml
index 9e45c42b..29e7223b 100644
--- a/examples/cafe-endpointdsl/pom.xml
+++ b/examples/cafe-endpointdsl/pom.xml
@@ -58,12 +58,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <scope>runtime</scope>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/cafe/pom.xml b/examples/cafe/pom.xml
index a6e3d413..ada40379 100644
--- a/examples/cafe/pom.xml
+++ b/examples/cafe/pom.xml
@@ -73,12 +73,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <scope>runtime</scope>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/cassandra-kubernetes/pom.xml b/examples/cassandra-kubernetes/pom.xml
index 3074502b..91e3f936 100644
--- a/examples/cassandra-kubernetes/pom.xml
+++ b/examples/cassandra-kubernetes/pom.xml
@@ -94,19 +94,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-            <version>${commons-logging-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>${slf4j-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>1.2.17</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
     </dependencies>
     <build>
diff --git a/examples/console/pom.xml b/examples/console/pom.xml
index 1767dbaf..424a6982 100644
--- a/examples/console/pom.xml
+++ b/examples/console/pom.xml
@@ -69,12 +69,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <scope>runtime</scope>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/couchbase-log/pom.xml b/examples/couchbase-log/pom.xml
index 37049c16..042c202c 100644
--- a/examples/couchbase-log/pom.xml
+++ b/examples/couchbase-log/pom.xml
@@ -68,14 +68,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/csimple-joor/pom.xml b/examples/csimple-joor/pom.xml
index a57c0530..c851d61a 100644
--- a/examples/csimple-joor/pom.xml
+++ b/examples/csimple-joor/pom.xml
@@ -79,14 +79,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
 
         <!-- for testing -->
diff --git a/examples/csimple/pom.xml b/examples/csimple/pom.xml
index 236f2622..17d42659 100644
--- a/examples/csimple/pom.xml
+++ b/examples/csimple/pom.xml
@@ -72,14 +72,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
 
         <!-- for testing -->
diff --git a/examples/debezium-eventhubs-blob/pom.xml b/examples/debezium-eventhubs-blob/pom.xml
index f18762f2..cbe1cbe1 100644
--- a/examples/debezium-eventhubs-blob/pom.xml
+++ b/examples/debezium-eventhubs-blob/pom.xml
@@ -77,11 +77,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/debezium/pom.xml b/examples/debezium/pom.xml
index 1c0def49..3c57a652 100644
--- a/examples/debezium/pom.xml
+++ b/examples/debezium/pom.xml
@@ -77,11 +77,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/flight-recorder/pom.xml b/examples/flight-recorder/pom.xml
index 5593e2ea..f068de59 100644
--- a/examples/flight-recorder/pom.xml
+++ b/examples/flight-recorder/pom.xml
@@ -81,14 +81,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
 
         <!-- for testing -->
diff --git a/examples/ftp/pom.xml b/examples/ftp/pom.xml
index ed69ace7..4f6aaf16 100644
--- a/examples/ftp/pom.xml
+++ b/examples/ftp/pom.xml
@@ -66,11 +66,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/hazelcast-kubernetes/pom.xml b/examples/hazelcast-kubernetes/pom.xml
index c466b417..3a97818f 100644
--- a/examples/hazelcast-kubernetes/pom.xml
+++ b/examples/hazelcast-kubernetes/pom.xml
@@ -79,19 +79,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-            <version>${commons-logging-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>${slf4j-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>1.2.17</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
     </dependencies>
 
diff --git a/examples/java8/pom.xml b/examples/java8/pom.xml
index 29e5f4d9..074ded46 100644
--- a/examples/java8/pom.xml
+++ b/examples/java8/pom.xml
@@ -68,12 +68,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <scope>runtime</scope>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/jdbc/pom.xml b/examples/jdbc/pom.xml
index ef7bbd26..b6ce56f8 100644
--- a/examples/jdbc/pom.xml
+++ b/examples/jdbc/pom.xml
@@ -83,12 +83,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/jmx/pom.xml b/examples/jmx/pom.xml
index 74de8cae..bce5d49a 100644
--- a/examples/jmx/pom.xml
+++ b/examples/jmx/pom.xml
@@ -72,12 +72,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/jooq/pom.xml b/examples/jooq/pom.xml
index 02c7b222..16dec5e5 100644
--- a/examples/jooq/pom.xml
+++ b/examples/jooq/pom.xml
@@ -76,12 +76,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/kafka/pom.xml b/examples/kafka/pom.xml
index e5fdc522..d620ecd1 100644
--- a/examples/kafka/pom.xml
+++ b/examples/kafka/pom.xml
@@ -69,11 +69,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/kamelet-chucknorris/pom.xml b/examples/kamelet-chucknorris/pom.xml
index 394fe622..6fc020ac 100644
--- a/examples/kamelet-chucknorris/pom.xml
+++ b/examples/kamelet-chucknorris/pom.xml
@@ -80,19 +80,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/kamelet-main/pom.xml b/examples/kamelet-main/pom.xml
index 005d8c15..afbc2f9c 100644
--- a/examples/kamelet-main/pom.xml
+++ b/examples/kamelet-main/pom.xml
@@ -62,19 +62,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/kamelet-sql/pom.xml b/examples/kamelet-sql/pom.xml
index 10d0bf02..5500eb4f 100644
--- a/examples/kamelet-sql/pom.xml
+++ b/examples/kamelet-sql/pom.xml
@@ -67,19 +67,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/kamelet/pom.xml b/examples/kamelet/pom.xml
index 629e27e0..b549e13a 100644
--- a/examples/kamelet/pom.xml
+++ b/examples/kamelet/pom.xml
@@ -67,19 +67,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/kotlin/pom.xml b/examples/kotlin/pom.xml
index e6b1ea60..a0b8f3dc 100644
--- a/examples/kotlin/pom.xml
+++ b/examples/kotlin/pom.xml
@@ -75,20 +75,17 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-slf4j2-impl</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/loadbalancing/pom.xml b/examples/loadbalancing/pom.xml
index dab93578..edac1bc5 100644
--- a/examples/loadbalancing/pom.xml
+++ b/examples/loadbalancing/pom.xml
@@ -70,20 +70,17 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-slf4j2-impl</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-endpointdsl/pom.xml b/examples/main-endpointdsl/pom.xml
index df1b14d8..cf327bc2 100644
--- a/examples/main-endpointdsl/pom.xml
+++ b/examples/main-endpointdsl/pom.xml
@@ -73,14 +73,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-health/pom.xml b/examples/main-health/pom.xml
index 6313d9f3..48c88922 100644
--- a/examples/main-health/pom.xml
+++ b/examples/main-health/pom.xml
@@ -76,19 +76,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-joor/pom.xml b/examples/main-joor/pom.xml
index 7170b38b..2972e84b 100644
--- a/examples/main-joor/pom.xml
+++ b/examples/main-joor/pom.xml
@@ -67,19 +67,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-lambda/pom.xml b/examples/main-lambda/pom.xml
index 1dd89dde..5afebd94 100644
--- a/examples/main-lambda/pom.xml
+++ b/examples/main-lambda/pom.xml
@@ -67,19 +67,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-tiny/pom.xml b/examples/main-tiny/pom.xml
index eb2f5a71..06f6556a 100644
--- a/examples/main-tiny/pom.xml
+++ b/examples/main-tiny/pom.xml
@@ -68,14 +68,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-xml/pom.xml b/examples/main-xml/pom.xml
index 5787e9e6..8d04c305 100644
--- a/examples/main-xml/pom.xml
+++ b/examples/main-xml/pom.xml
@@ -79,18 +79,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main-yaml/pom.xml b/examples/main-yaml/pom.xml
index 62718164..a3bc6eb3 100644
--- a/examples/main-yaml/pom.xml
+++ b/examples/main-yaml/pom.xml
@@ -78,18 +78,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/main/pom.xml b/examples/main/pom.xml
index 0995ca56..700975e7 100644
--- a/examples/main/pom.xml
+++ b/examples/main/pom.xml
@@ -73,19 +73,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/mapstruct/pom.xml b/examples/mapstruct/pom.xml
index 28bd1f73..ecf4b251 100644
--- a/examples/mapstruct/pom.xml
+++ b/examples/mapstruct/pom.xml
@@ -77,19 +77,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/minio/pom.xml b/examples/minio/pom.xml
index bc4c269b..10e03035 100644
--- a/examples/minio/pom.xml
+++ b/examples/minio/pom.xml
@@ -72,14 +72,16 @@
 
         <!-- logging -->
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
 
         <!-- testing -->
diff --git a/examples/mongodb/pom.xml b/examples/mongodb/pom.xml
index f1728fef..93bbbe5d 100644
--- a/examples/mongodb/pom.xml
+++ b/examples/mongodb/pom.xml
@@ -71,10 +71,18 @@
             <artifactId>camel-jetty</artifactId>
         </dependency>
 
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/netty-custom-correlation/pom.xml b/examples/netty-custom-correlation/pom.xml
index a0782332..f2551619 100644
--- a/examples/netty-custom-correlation/pom.xml
+++ b/examples/netty-custom-correlation/pom.xml
@@ -65,25 +65,17 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-slf4j2-impl</artifactId>
             <version>${log4j2-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-jul</artifactId>
-            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/oaipmh/pom.xml b/examples/oaipmh/pom.xml
index 12f1f18b..3ac5bf9a 100644
--- a/examples/oaipmh/pom.xml
+++ b/examples/oaipmh/pom.xml
@@ -59,10 +59,18 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-management</artifactId>
         </dependency>
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.camel</groupId>
diff --git a/examples/reactive-executor-vertx/pom.xml b/examples/reactive-executor-vertx/pom.xml
index 7065fe36..61bc3918 100644
--- a/examples/reactive-executor-vertx/pom.xml
+++ b/examples/reactive-executor-vertx/pom.xml
@@ -69,12 +69,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
@@ -87,12 +81,6 @@
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-jul</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <!-- for testing -->
         <dependency>
             <groupId>org.apache.camel</groupId>
diff --git a/examples/resume-api/pom.xml b/examples/resume-api/pom.xml
index d3a867c4..41aebe99 100644
--- a/examples/resume-api/pom.xml
+++ b/examples/resume-api/pom.xml
@@ -79,9 +79,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-slf4j2-impl</artifactId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
             <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
     </dependencies>
 
diff --git a/examples/routeloader/pom.xml b/examples/routeloader/pom.xml
index 9eceae21..c4acef7c 100644
--- a/examples/routeloader/pom.xml
+++ b/examples/routeloader/pom.xml
@@ -105,19 +105,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/routes-configuration/pom.xml b/examples/routes-configuration/pom.xml
index 03e3f58e..d30890f6 100644
--- a/examples/routes-configuration/pom.xml
+++ b/examples/routes-configuration/pom.xml
@@ -89,19 +89,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/routetemplate-xml/pom.xml b/examples/routetemplate-xml/pom.xml
index 3a0fdbb0..3565707f 100644
--- a/examples/routetemplate-xml/pom.xml
+++ b/examples/routetemplate-xml/pom.xml
@@ -73,19 +73,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/routetemplate/pom.xml b/examples/routetemplate/pom.xml
index 878f3da8..eb04c342 100644
--- a/examples/routetemplate/pom.xml
+++ b/examples/routetemplate/pom.xml
@@ -67,19 +67,15 @@
         <!-- logging -->
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
+            <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <!-- for testing -->
         <dependency>
diff --git a/examples/salesforce-consumer/pom.xml b/examples/salesforce-consumer/pom.xml
index 8061a880..b18afa00 100644
--- a/examples/salesforce-consumer/pom.xml
+++ b/examples/salesforce-consumer/pom.xml
@@ -67,10 +67,18 @@
             <artifactId>camel-salesforce</artifactId>
         </dependency>
 
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
 
     </dependencies>
diff --git a/examples/splunk/pom.xml b/examples/splunk/pom.xml
index 764ac3bb..48ef1f67 100644
--- a/examples/splunk/pom.xml
+++ b/examples/splunk/pom.xml
@@ -66,11 +66,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/spring-pulsar/pom.xml b/examples/spring-pulsar/pom.xml
index b6869ec7..0972bbce 100644
--- a/examples/spring-pulsar/pom.xml
+++ b/examples/spring-pulsar/pom.xml
@@ -70,25 +70,17 @@
             <artifactId>camel-bean</artifactId>
         </dependency>
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-slf4j2-impl</artifactId>
             <version>${log4j2-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-1.2-api</artifactId>
-            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
 
         <!-- for testing -->
diff --git a/examples/spring-security/pom.xml b/examples/spring-security/pom.xml
index 6a3890fd..4e8a8f11 100644
--- a/examples/spring-security/pom.xml
+++ b/examples/spring-security/pom.xml
@@ -78,12 +78,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/spring-xquery/pom.xml b/examples/spring-xquery/pom.xml
index 14d57f08..2cb6cc9c 100644
--- a/examples/spring-xquery/pom.xml
+++ b/examples/spring-xquery/pom.xml
@@ -95,12 +95,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/spring/pom.xml b/examples/spring/pom.xml
index 2bf3a5c3..56ca9b3a 100644
--- a/examples/spring/pom.xml
+++ b/examples/spring/pom.xml
@@ -91,12 +91,6 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-            <scope>runtime</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
diff --git a/examples/telegram/pom.xml b/examples/telegram/pom.xml
index a9a64437..86869025 100644
--- a/examples/telegram/pom.xml
+++ b/examples/telegram/pom.xml
@@ -63,10 +63,18 @@
             <artifactId>camel-telegram</artifactId>
         </dependency>
 
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
     </dependencies>
 
diff --git a/examples/transformer-demo/pom.xml b/examples/transformer-demo/pom.xml
index bb6041e2..3cee2c4c 100644
--- a/examples/transformer-demo/pom.xml
+++ b/examples/transformer-demo/pom.xml
@@ -79,22 +79,19 @@
         </dependency>
 
         <!-- logging -->
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <version>${log4j2-version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-slf4j2-impl</artifactId>
             <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
-
+        
         <!-- for testing -->
         <dependency>
             <groupId>org.apache.camel</groupId>
diff --git a/examples/whatsapp/pom.xml b/examples/whatsapp/pom.xml
index 0dac96b8..054a49d0 100644
--- a/examples/whatsapp/pom.xml
+++ b/examples/whatsapp/pom.xml
@@ -71,10 +71,18 @@
             <artifactId>camel-jsonpath</artifactId>
         </dependency>
 
+        <!-- logging -->
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>${slf4j-version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>${log4j2-version}</version>
+            <scope>runtime</scope>
         </dependency>
     </dependencies>