You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2022/05/11 13:51:02 UTC

[activemq-artemis] 17/23: use SLF4J -> Log4J 2 impl

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

clebertsuconic pushed a commit to branch new-logging
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit ee7baae8124564661d7a3f42e30bdee659402634
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon May 9 11:43:47 2022 +0100

    use SLF4J -> Log4J 2 impl
---
 artemis-cdi-client/pom.xml                          |  4 ++--
 artemis-cli/pom.xml                                 |  4 ++--
 artemis-commons/pom.xml                             |  4 ++--
 artemis-core-client-osgi/pom.xml                    |  4 ++--
 artemis-core-client/pom.xml                         |  4 ++--
 artemis-jakarta-client/pom.xml                      |  4 ++--
 artemis-jakarta-ra/pom.xml                          |  4 ++--
 artemis-jakarta-server/pom.xml                      |  4 ++--
 artemis-jakarta-service-extensions/pom.xml          |  4 ++--
 artemis-jdbc-store/pom.xml                          |  4 ++--
 artemis-jms-client-osgi/pom.xml                     |  4 ++--
 artemis-jms-server/pom.xml                          |  4 ++--
 artemis-journal/pom.xml                             |  4 ++--
 artemis-junit/pom.xml                               |  4 ++--
 artemis-log-processor/pom.xml                       |  4 ++--
 artemis-protocols/artemis-amqp-protocol/pom.xml     |  4 ++--
 artemis-protocols/artemis-mqtt-protocol/pom.xml     |  4 ++--
 artemis-protocols/artemis-openwire-protocol/pom.xml |  4 ++--
 artemis-protocols/artemis-stomp-protocol/pom.xml    |  4 ++--
 artemis-quorum-ri/pom.xml                           |  4 ++--
 artemis-rest/pom.xml                                |  4 ++--
 artemis-server-osgi/pom.xml                         |  4 ++--
 artemis-server/pom.xml                              |  4 ++--
 artemis-service-extensions/pom.xml                  |  4 ++--
 artemis-web/pom.xml                                 |  4 ++--
 artemis-website/pom.xml                             |  4 ++--
 examples/features/standard/security-ldap/pom.xml    |  6 +++---
 pom.xml                                             | 21 ++++++++++++++-------
 tests/compatibility-tests/pom.xml                   |  4 ++--
 tests/integration-tests/pom.xml                     |  6 +++---
 tests/jms-tests/pom.xml                             |  4 ++--
 tests/joram-tests/pom.xml                           |  4 ++--
 tests/karaf-client-integration-tests/pom.xml        |  4 ++--
 tests/performance-tests/pom.xml                     |  4 ++--
 tests/smoke-tests/pom.xml                           |  4 ++--
 tests/unit-tests/pom.xml                            |  4 ++--
 36 files changed, 86 insertions(+), 79 deletions(-)

diff --git a/artemis-cdi-client/pom.xml b/artemis-cdi-client/pom.xml
index 86fb5d73a1..938d2b908c 100644
--- a/artemis-cdi-client/pom.xml
+++ b/artemis-cdi-client/pom.xml
@@ -41,8 +41,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-cli/pom.xml b/artemis-cli/pom.xml
index d2f57d4012..4dce1875f9 100644
--- a/artemis-cli/pom.xml
+++ b/artemis-cli/pom.xml
@@ -88,8 +88,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
       <dependency>
diff --git a/artemis-commons/pom.xml b/artemis-commons/pom.xml
index 9293681556..5e0bf698a4 100644
--- a/artemis-commons/pom.xml
+++ b/artemis-commons/pom.xml
@@ -65,8 +65,8 @@
          <!-- License: MIT -->
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
       <dependency>
diff --git a/artemis-core-client-osgi/pom.xml b/artemis-core-client-osgi/pom.xml
index 81450f570d..417b58fd35 100644
--- a/artemis-core-client-osgi/pom.xml
+++ b/artemis-core-client-osgi/pom.xml
@@ -47,8 +47,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>xalan</groupId>
diff --git a/artemis-core-client/pom.xml b/artemis-core-client/pom.xml
index 7742abbd6a..b417d04977 100644
--- a/artemis-core-client/pom.xml
+++ b/artemis-core-client/pom.xml
@@ -45,8 +45,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.jgroups</groupId>
diff --git a/artemis-jakarta-client/pom.xml b/artemis-jakarta-client/pom.xml
index edbb60f61a..22ae04a45d 100644
--- a/artemis-jakarta-client/pom.xml
+++ b/artemis-jakarta-client/pom.xml
@@ -39,8 +39,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-jakarta-ra/pom.xml b/artemis-jakarta-ra/pom.xml
index 4f44ed07ab..b5979fc24f 100644
--- a/artemis-jakarta-ra/pom.xml
+++ b/artemis-jakarta-ra/pom.xml
@@ -42,8 +42,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
 
diff --git a/artemis-jakarta-server/pom.xml b/artemis-jakarta-server/pom.xml
index c46c51f3a8..ce56456987 100644
--- a/artemis-jakarta-server/pom.xml
+++ b/artemis-jakarta-server/pom.xml
@@ -41,8 +41,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-jakarta-service-extensions/pom.xml b/artemis-jakarta-service-extensions/pom.xml
index 95832de3e0..96774080e6 100644
--- a/artemis-jakarta-service-extensions/pom.xml
+++ b/artemis-jakarta-service-extensions/pom.xml
@@ -55,8 +55,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>jakarta.transaction</groupId>
diff --git a/artemis-jdbc-store/pom.xml b/artemis-jdbc-store/pom.xml
index 9afe3af6a8..7b0fc43425 100644
--- a/artemis-jdbc-store/pom.xml
+++ b/artemis-jdbc-store/pom.xml
@@ -39,8 +39,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-jms-client-osgi/pom.xml b/artemis-jms-client-osgi/pom.xml
index b8a9b9de38..fc768fce92 100644
--- a/artemis-jms-client-osgi/pom.xml
+++ b/artemis-jms-client-osgi/pom.xml
@@ -57,8 +57,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>xalan</groupId>
diff --git a/artemis-jms-server/pom.xml b/artemis-jms-server/pom.xml
index df20360ec2..73f363b4a3 100644
--- a/artemis-jms-server/pom.xml
+++ b/artemis-jms-server/pom.xml
@@ -38,8 +38,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-journal/pom.xml b/artemis-journal/pom.xml
index c2b0d3d6e9..902d74c3a8 100644
--- a/artemis-journal/pom.xml
+++ b/artemis-journal/pom.xml
@@ -47,8 +47,8 @@
          <!-- License: MIT -->
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-junit/pom.xml b/artemis-junit/pom.xml
index fee0b3969b..83a7997fe6 100644
--- a/artemis-junit/pom.xml
+++ b/artemis-junit/pom.xml
@@ -44,8 +44,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-log-processor/pom.xml b/artemis-log-processor/pom.xml
index 7976f143c6..56a888a78a 100644
--- a/artemis-log-processor/pom.xml
+++ b/artemis-log-processor/pom.xml
@@ -39,8 +39,8 @@
          <!-- License: MIT -->
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
       <!-- needed to compile the tests -->
diff --git a/artemis-protocols/artemis-amqp-protocol/pom.xml b/artemis-protocols/artemis-amqp-protocol/pom.xml
index c8f6eeea75..cfc94678d1 100644
--- a/artemis-protocols/artemis-amqp-protocol/pom.xml
+++ b/artemis-protocols/artemis-amqp-protocol/pom.xml
@@ -53,8 +53,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
       <dependency>
diff --git a/artemis-protocols/artemis-mqtt-protocol/pom.xml b/artemis-protocols/artemis-mqtt-protocol/pom.xml
index 11e84186b8..5a15570291 100644
--- a/artemis-protocols/artemis-mqtt-protocol/pom.xml
+++ b/artemis-protocols/artemis-mqtt-protocol/pom.xml
@@ -38,8 +38,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-protocols/artemis-openwire-protocol/pom.xml b/artemis-protocols/artemis-openwire-protocol/pom.xml
index 98d7328f7a..e0987494f4 100644
--- a/artemis-protocols/artemis-openwire-protocol/pom.xml
+++ b/artemis-protocols/artemis-openwire-protocol/pom.xml
@@ -38,8 +38,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-protocols/artemis-stomp-protocol/pom.xml b/artemis-protocols/artemis-stomp-protocol/pom.xml
index df716eb665..e7d4edf420 100644
--- a/artemis-protocols/artemis-stomp-protocol/pom.xml
+++ b/artemis-protocols/artemis-stomp-protocol/pom.xml
@@ -38,8 +38,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-quorum-ri/pom.xml b/artemis-quorum-ri/pom.xml
index eeb4ac1b14..0ae7756307 100644
--- a/artemis-quorum-ri/pom.xml
+++ b/artemis-quorum-ri/pom.xml
@@ -67,8 +67,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-rest/pom.xml b/artemis-rest/pom.xml
index 74db626dcc..577ac0a6ab 100644
--- a/artemis-rest/pom.xml
+++ b/artemis-rest/pom.xml
@@ -39,8 +39,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
 
diff --git a/artemis-server-osgi/pom.xml b/artemis-server-osgi/pom.xml
index c05090b9ac..aff122748a 100644
--- a/artemis-server-osgi/pom.xml
+++ b/artemis-server-osgi/pom.xml
@@ -82,8 +82,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>xalan</groupId>
diff --git a/artemis-server/pom.xml b/artemis-server/pom.xml
index 2ddefb8835..e2facd072b 100644
--- a/artemis-server/pom.xml
+++ b/artemis-server/pom.xml
@@ -38,8 +38,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>com.google.guava</groupId>
diff --git a/artemis-service-extensions/pom.xml b/artemis-service-extensions/pom.xml
index b94bd8be41..b60c2ce7e1 100644
--- a/artemis-service-extensions/pom.xml
+++ b/artemis-service-extensions/pom.xml
@@ -53,8 +53,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>jakarta.transaction</groupId>
diff --git a/artemis-web/pom.xml b/artemis-web/pom.xml
index 51ccb0fcaa..2ae95c0a3a 100644
--- a/artemis-web/pom.xml
+++ b/artemis-web/pom.xml
@@ -38,8 +38,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/artemis-website/pom.xml b/artemis-website/pom.xml
index 4f59b798cd..36542721a2 100644
--- a/artemis-website/pom.xml
+++ b/artemis-website/pom.xml
@@ -64,8 +64,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>xalan</groupId>
diff --git a/examples/features/standard/security-ldap/pom.xml b/examples/features/standard/security-ldap/pom.xml
index c50abc9731..e3c89418cc 100644
--- a/examples/features/standard/security-ldap/pom.xml
+++ b/examples/features/standard/security-ldap/pom.xml
@@ -64,8 +64,8 @@ under the License.
          <scope>compile</scope>
          <exclusions>
             <exclusion>
-               <groupId>org.slf4j</groupId>
-               <artifactId>slf4j-log4j12</artifactId>
+               <groupId>org.apache.logging.log4j</groupId>
+               <artifactId>log4j-slf4j-impl</artifactId>
             </exclusion>
          </exclusions>
       </dependency>
@@ -150,4 +150,4 @@ under the License.
          </plugin>
       </plugins>
    </build>
-</project>
\ No newline at end of file
+</project>
diff --git a/pom.xml b/pom.xml
index ef9c7ef0e2..3145aaba97 100644
--- a/pom.xml
+++ b/pom.xml
@@ -128,6 +128,7 @@
       <proton.version>0.33.10</proton.version>
       <resteasy.version>3.15.0.Final</resteasy.version>
       <slf4j.version>1.7.36</slf4j.version>
+      <log4j.version>2.17.2</log4j.version>
       <qpid.jms.version>1.6.0</qpid.jms.version>
       <johnzon.version>1.2.16</johnzon.version>
       <hawtbuff.version>1.11</hawtbuff.version>
@@ -690,14 +691,20 @@
            <version>${slf4j.version}</version>
            <!-- License: MIT -->
          </dependency>
-
-         <!-- TODO: Remove this, and all uses. It is the Log4J 1.2 binding and thus is
-	                ancient. It doenst actually exist anymore either, being redirected
-                    to slf4j-reload4j with a warning emitted in the build by maven -->
          <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>${slf4j.version}</version>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j-impl</artifactId>
+            <version>${log4j.version}</version>
+         </dependency>
+         <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-api</artifactId>
+            <version>${log4j.version}</version>
+         </dependency>
+         <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>${log4j.version}</version>
          </dependency>
 
          <!--needed for the rest support-->
diff --git a/tests/compatibility-tests/pom.xml b/tests/compatibility-tests/pom.xml
index 2ef80e7912..d962e76600 100644
--- a/tests/compatibility-tests/pom.xml
+++ b/tests/compatibility-tests/pom.xml
@@ -264,8 +264,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.jboss.marshalling</groupId>
diff --git a/tests/integration-tests/pom.xml b/tests/integration-tests/pom.xml
index 053e4fc04b..4a2642752c 100644
--- a/tests/integration-tests/pom.xml
+++ b/tests/integration-tests/pom.xml
@@ -267,9 +267,9 @@
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
       </dependency>
-      <dependency> <!-- TODO: replace with e.g Log4J 2 -->
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+      <dependency>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
diff --git a/tests/jms-tests/pom.xml b/tests/jms-tests/pom.xml
index 97389e8eef..44b2518f89 100644
--- a/tests/jms-tests/pom.xml
+++ b/tests/jms-tests/pom.xml
@@ -94,8 +94,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
    </dependencies>
 
diff --git a/tests/joram-tests/pom.xml b/tests/joram-tests/pom.xml
index c324a94ba6..a91ec5e95d 100644
--- a/tests/joram-tests/pom.xml
+++ b/tests/joram-tests/pom.xml
@@ -90,8 +90,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <!-- The johnzon-core and json-api contents are repackaged in -commons,
            However maven can still need them during tests, which run against
diff --git a/tests/karaf-client-integration-tests/pom.xml b/tests/karaf-client-integration-tests/pom.xml
index d27f65abd1..7ecf3473b7 100644
--- a/tests/karaf-client-integration-tests/pom.xml
+++ b/tests/karaf-client-integration-tests/pom.xml
@@ -88,8 +88,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
       <!-- karaf test -->
diff --git a/tests/performance-tests/pom.xml b/tests/performance-tests/pom.xml
index b129389973..ce2559b4f0 100644
--- a/tests/performance-tests/pom.xml
+++ b/tests/performance-tests/pom.xml
@@ -105,8 +105,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
    </dependencies>
 
diff --git a/tests/smoke-tests/pom.xml b/tests/smoke-tests/pom.xml
index e51d878343..8eb2e5386c 100644
--- a/tests/smoke-tests/pom.xml
+++ b/tests/smoke-tests/pom.xml
@@ -96,8 +96,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
       <dependency>
          <groupId>org.fusesource.mqtt-client</groupId>
diff --git a/tests/unit-tests/pom.xml b/tests/unit-tests/pom.xml
index 714d351877..4264383fb6 100644
--- a/tests/unit-tests/pom.xml
+++ b/tests/unit-tests/pom.xml
@@ -123,8 +123,8 @@
          <artifactId>slf4j-api</artifactId>
       </dependency>
       <dependency>
-         <groupId>org.slf4j</groupId>
-         <artifactId>slf4j-log4j12</artifactId>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j-impl</artifactId>
       </dependency>
 
       <!-- this is for the log assertion -->