This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
commit 8534656b68ec5fed2564c61cc0b6db5985395ed4 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 ab9891cd..43005dfb 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>
