From 7353913c195334b3cac57350240d71364614cf83 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sat, 23 Sep 2023 09:32:21 +0200 Subject: [PATCH] infra: downgrade JUnit Upgrading Maven Surefire to a recent version fails with exceptions in the process launching the test process. That's because we have 2 versions of JUnit: 5.10 from Maven and 5.7.1 from the Eclipse target platform. Surefire seems to be confused by that and tries to use the junit-platform-launcher 5.7 from the target platform to launch the 5.10 JUnit during the Maven run. To avoid this, downgrade the Maven JUnit version to the latest 5.7.x, such that both Maven and Eclipse use the same JUnit version. Also remove some superfluous configuration. --- pom.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index d71d6dfdd..1dc569869 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,9 @@ 3.4.0 1.7.1 3.1.0 - 5.10.0 + + + 5.7.2 3.1.0 3.3.0 3.3.1 @@ -33,7 +35,7 @@ 3.1.1 3.3.1 3.12.1 - 2.22.2 + 3.1.2 3.6.3 2.7.5 2.16.1 @@ -377,11 +379,6 @@ maven-surefire-plugin ${maven-surefire-plugin-version} - - - **/*Test.java - - maven-compiler-plugin