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

slachiewicz pushed a commit to branch wagon-3.x
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git

commit 56a85fee0ced120543357d7bc94570366e10d0dd
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Oct 31 13:56:24 2026 +0000

    Keep JUnit 4 off the wagon-scm test classpath
---
 wagon-providers/wagon-scm/pom.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/wagon-providers/wagon-scm/pom.xml 
b/wagon-providers/wagon-scm/pom.xml
index f1773fb2..e376b6cc 100644
--- a/wagon-providers/wagon-scm/pom.xml
+++ b/wagon-providers/wagon-scm/pom.xml
@@ -73,6 +73,18 @@ under the License.
           <groupId>org.codehaus.plexus</groupId>
           <artifactId>plexus-container-default</artifactId>
         </exclusion>
+        <!--
+         | Only GitScmTestUtils.setDefaultGitConfig is used, which needs no 
JUnit 4.
+         | Without these exclusions surefire sees JUnit 4 on the classpath and 
adds the vintage engine.
+        -->
+        <exclusion>
+          <groupId>junit</groupId>
+          <artifactId>junit</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.hamcrest</groupId>
+          <artifactId>hamcrest-core</artifactId>
+        </exclusion>
       </exclusions>
     </dependency>
     <dependency>

Reply via email to