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

cortlepp pushed a commit to branch cortlepp/unify-log4j-deps
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-rampart.git

commit 8f5b1967ee568705c32ef8f1a536a7fedd4270ae
Author: Christian Ortlepp <[email protected]>
AuthorDate: Tue Apr 7 16:23:55 2026 +0200

    chore: unify log4j deps and update them
---
 modules/distribution/pom.xml        |  6 +-----
 modules/rampart-integration/pom.xml |  8 ++------
 modules/rampart-samples/pom.xml     |  8 ++------
 modules/rampart-tests/pom.xml       |  8 ++------
 modules/rampart-trust/pom.xml       |  8 ++------
 pom.xml                             | 22 +++++-----------------
 6 files changed, 14 insertions(+), 46 deletions(-)

diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml
index e54dff87..c5a4c687 100644
--- a/modules/distribution/pom.xml
+++ b/modules/distribution/pom.xml
@@ -139,7 +139,7 @@
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-bom</artifactId>
-            <version>2.24.1</version>
+            <version>${log4j.version}</version>
             <type>pom</type>
             <scope>import</scope>
         </dependency>
@@ -147,7 +147,6 @@
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jcl</artifactId>
-            <version>2.18.0</version>
             <exclusions>
                 <exclusion>
                     <groupId>commons-logging</groupId>
@@ -159,7 +158,6 @@
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-slf4j-impl</artifactId>
-            <version>2.18.0</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.slf4j</groupId>
@@ -171,12 +169,10 @@
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
-            <version>2.25.3</version>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-api</artifactId>
-            <version>2.18.0</version>
         </dependency>
     </dependencies>
 
diff --git a/modules/rampart-integration/pom.xml 
b/modules/rampart-integration/pom.xml
index f5092df8..15ca123d 100644
--- a/modules/rampart-integration/pom.xml
+++ b/modules/rampart-integration/pom.xml
@@ -582,25 +582,21 @@
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jul</artifactId>
-            <version>2.24.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
-            <version>2.25.3</version>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-api</artifactId>
-            <version>2.24.1</version>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jcl</artifactId>
-            <version>2.24.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.axis2</groupId>
diff --git a/modules/rampart-samples/pom.xml b/modules/rampart-samples/pom.xml
index b7aae90d..8f43b60a 100644
--- a/modules/rampart-samples/pom.xml
+++ b/modules/rampart-samples/pom.xml
@@ -111,28 +111,24 @@
             <version>1.10.15</version>
             <scope>test</scope>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jul</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
-            <version>2.25.3</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-api</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jcl</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/modules/rampart-tests/pom.xml b/modules/rampart-tests/pom.xml
index 9fe67b7f..5e6f22ef 100644
--- a/modules/rampart-tests/pom.xml
+++ b/modules/rampart-tests/pom.xml
@@ -108,28 +108,24 @@
             <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jul</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
-            <version>2.25.3</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-api</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jcl</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/modules/rampart-trust/pom.xml b/modules/rampart-trust/pom.xml
index c209ffda..64f5c162 100644
--- a/modules/rampart-trust/pom.xml
+++ b/modules/rampart-trust/pom.xml
@@ -101,28 +101,24 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jul</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-core</artifactId>
-            <version>2.25.3</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-api</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
-       <dependency>
+           <dependency>
             <groupId>org.apache.logging.log4j</groupId>
             <artifactId>log4j-jcl</artifactId>
-            <version>2.24.1</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
diff --git a/pom.xml b/pom.xml
index 156f611d..22b6b9ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -696,23 +696,10 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.logging.log4j</groupId>
-                <artifactId>log4j-jul</artifactId>
-                <version>2.24.1</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.logging.log4j</groupId>
-                <artifactId>log4j-core</artifactId>
-                <version>2.25.3</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.logging.log4j</groupId>
-                <artifactId>log4j-api</artifactId>
-                <version>2.24.1</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.logging.log4j</groupId>
-                <artifactId>log4j-jcl</artifactId>
-                <version>2.24.1</version>
+                <artifactId>log4j-bom</artifactId>
+                <version>${log4j.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
             </dependency>
             <dependency>
                 <groupId>org.slf4j</groupId>
@@ -857,6 +844,7 @@
 
         <jacoco.version>0.8.12</jacoco.version>
         <slf4j.version>2.0.16</slf4j.version>
+        <log4j.version>2.25.4</log4j.version>
        <!-- see the parent artifact 'apache' i.e 33, it defaults to a older 
version--> 
         <maven.compiler.target>11</maven.compiler.target>
     </properties>

Reply via email to