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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ba724bb54 fix: strip version from test JARs in maven-classworlds to 
avoid Dependabot failures (#13751)
6ba724bb54 is described below

commit 6ba724bb54103558ef55ad81b21b60cb9db042cd
Author: Guillaume Nodet <[email protected]>
AuthorDate: Fri Oct 30 10:00:00 2026 +0100

    fix: strip version from test JARs in maven-classworlds to avoid Dependabot 
failures (#13751)
---
 impl/maven-classworlds/pom.xml                                      | 1 +
 impl/maven-classworlds/src/test/test-data/optionally-existent.conf  | 2 +-
 impl/maven-classworlds/src/test/test-data/valid-from-from-from.conf | 4 ++--
 impl/maven-classworlds/src/test/test-data/valid.conf                | 6 +++---
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/impl/maven-classworlds/pom.xml b/impl/maven-classworlds/pom.xml
index 768d4199aa..d634a59633 100644
--- a/impl/maven-classworlds/pom.xml
+++ b/impl/maven-classworlds/pom.xml
@@ -96,6 +96,7 @@ under the License.
             </goals>
             <phase>generate-test-resources</phase>
             <configuration>
+              <stripVersion>true</stripVersion>
               <artifactItems>
                 <artifactItem>
                   <groupId>org.apache.ant</groupId>
diff --git a/impl/maven-classworlds/src/test/test-data/optionally-existent.conf 
b/impl/maven-classworlds/src/test/test-data/optionally-existent.conf
index fe102574c9..c2a32928d3 100644
--- a/impl/maven-classworlds/src/test/test-data/optionally-existent.conf
+++ b/impl/maven-classworlds/src/test/test-data/optionally-existent.conf
@@ -10,5 +10,5 @@ main is org.apache.maven.app.App from opt
 # ------------------------------------------------------------
 
 [opt]
-  optionally ${basedir}/target/test-lib/jakarta.xml.bind-api-4.0.2.jar
+  optionally ${basedir}/target/test-lib/jakarta.xml.bind-api.jar
 
diff --git 
a/impl/maven-classworlds/src/test/test-data/valid-from-from-from.conf 
b/impl/maven-classworlds/src/test/test-data/valid-from-from-from.conf
index 49895b093c..e2ec2dc347 100644
--- a/impl/maven-classworlds/src/test/test-data/valid-from-from-from.conf
+++ b/impl/maven-classworlds/src/test/test-data/valid-from-from-from.conf
@@ -14,11 +14,11 @@ main is com.from.from.from.Main from from
 
 [ant]
   import com.from.from.from from from
-  load ${basedir}/target/test-lib/ant-1.10.14.jar
+  load ${basedir}/target/test-lib/ant.jar
 
 [maven]
   import com.from.from.from from from
-  load ${basedir}/target/test-lib/log4j-api-2.23.1.jar
+  load ${basedir}/target/test-lib/log4j-api.jar
 
 [glob]
   load ${basedir}/target/test-jars/*.jar
diff --git a/impl/maven-classworlds/src/test/test-data/valid.conf 
b/impl/maven-classworlds/src/test/test-data/valid.conf
index e85024bf00..d8ba2d9e0f 100644
--- a/impl/maven-classworlds/src/test/test-data/valid.conf
+++ b/impl/maven-classworlds/src/test/test-data/valid.conf
@@ -10,15 +10,15 @@ main is org.apache.maven.app.App from maven
 # ------------------------------------------------------------
 
 [xml]
-  load ${basedir}/target/test-lib/jakarta.xml.bind-api-4.0.2.jar
+  load ${basedir}/target/test-lib/jakarta.xml.bind-api.jar
 
 [ant]
   import jakarta.xml.bind from xml
-  load ${basedir}/target/test-lib/ant-1.10.14.jar
+  load ${basedir}/target/test-lib/ant.jar
 
 [maven]
   import jakarta.xml.bind from xml
-  load ${basedir}/target/test-lib/log4j-api-2.23.1.jar
+  load ${basedir}/target/test-lib/log4j-api.jar
 
 [glob]
   load ${basedir}/target/test-jars/*.jar

Reply via email to