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

coheigea pushed a commit to branch 2_4_x-fixes
in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git


The following commit(s) were added to refs/heads/2_4_x-fixes by this push:
     new a8c95be38 Fixing junit on 2_4_X
a8c95be38 is described below

commit a8c95be38c0a692068300d5807c5a12242b29469
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Tue Sep 22 13:57:53 2026 +0100

    Fixing junit on 2_4_X
---
 integration/pom.xml             | 5 +++++
 parent/pom.xml                  | 8 ++++++--
 policy/pom.xml                  | 5 +++++
 ws-security-common/pom.xml      | 5 +++++
 ws-security-dom/pom.xml         | 5 +++++
 ws-security-policy-stax/pom.xml | 5 +++++
 ws-security-stax/pom.xml        | 6 +++++-
 7 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/integration/pom.xml b/integration/pom.xml
index b1e077018..509ef6601 100644
--- a/integration/pom.xml
+++ b/integration/pom.xml
@@ -89,6 +89,11 @@
             <artifactId>junit-jupiter-engine</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
diff --git a/parent/pom.xml b/parent/pom.xml
index d5fb27577..2f7c274c3 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -94,10 +94,14 @@
                 <artifactId>slf4j-log4j12</artifactId>
                 <version>${slf4j.version}</version>
             </dependency>
+            <!-- BOM manages junit-jupiter-* and junit-platform-* 
consistently, avoiding
+                 launcher/engine version skew that breaks IDE test discovery 
-->
             <dependency>
-                <groupId>org.junit.jupiter</groupId>
-                <artifactId>junit-jupiter-engine</artifactId>
+                <groupId>org.junit</groupId>
+                <artifactId>junit-bom</artifactId>
                 <version>${junit.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
             </dependency>
             <dependency>
                 <groupId>wsdl4j</groupId>
diff --git a/policy/pom.xml b/policy/pom.xml
index d8054a3b4..3d1e5b458 100644
--- a/policy/pom.xml
+++ b/policy/pom.xml
@@ -44,6 +44,11 @@
             <artifactId>junit-jupiter-engine</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.xmlunit</groupId>
             <artifactId>xmlunit-core</artifactId>
diff --git a/ws-security-common/pom.xml b/ws-security-common/pom.xml
index b49c0c58a..9299ef188 100644
--- a/ws-security-common/pom.xml
+++ b/ws-security-common/pom.xml
@@ -239,6 +239,11 @@
             <artifactId>junit-jupiter-engine</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
diff --git a/ws-security-dom/pom.xml b/ws-security-dom/pom.xml
index e92a4e101..90a758224 100644
--- a/ws-security-dom/pom.xml
+++ b/ws-security-dom/pom.xml
@@ -111,6 +111,11 @@
             <artifactId>junit-jupiter-engine</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
diff --git a/ws-security-policy-stax/pom.xml b/ws-security-policy-stax/pom.xml
index 21fc79e5d..d668f8e92 100644
--- a/ws-security-policy-stax/pom.xml
+++ b/ws-security-policy-stax/pom.xml
@@ -84,6 +84,11 @@
             <artifactId>junit-jupiter-engine</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
diff --git a/ws-security-stax/pom.xml b/ws-security-stax/pom.xml
index 4382d57d8..527806d89 100644
--- a/ws-security-stax/pom.xml
+++ b/ws-security-stax/pom.xml
@@ -92,11 +92,15 @@
             <artifactId>junit-jupiter-engine</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.junit.jupiter</groupId>
             <artifactId>junit-jupiter-params</artifactId>
             <scope>test</scope>
-            <version>${junit.version}</version>
         </dependency>
         <dependency>
             <groupId>org.bouncycastle</groupId>

Reply via email to