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

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


The following commit(s) were added to refs/heads/master by this push:
     new 11bbdc9b1 [SUREFIRE-2149] Make all ITs run with Maven 3.9.0
11bbdc9b1 is described below

commit 11bbdc9b1450d011e0c5520cf5e3f01ebffce097
Author: Pabst, Andreas <[email protected]>
AuthorDate: Sun Feb 12 00:07:31 2023 +0100

    [SUREFIRE-2149] Make all ITs run with Maven 3.9.0
---
 .../org/apache/maven/surefire/its/fixture/MavenLauncher.java     | 3 ++-
 .../src/test/resources/surefire-946-dummy-dependency/pom.xml     | 6 ++++++
 surefire-its/src/test/resources/unicode-testnames/pom.xml        | 9 +++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git 
a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
 
b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
index 9b484b518..08a3f5bf6 100755
--- 
a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
+++ 
b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
@@ -218,7 +218,8 @@ public final class MavenLauncher
 
     public MavenLauncher skipClean()
     {
-        writeGoal( "-Dclean.skip=true" );
+        writeGoal( "-Dclean.skip=true" /* for maven-clean-plugin < 3.0 */ );
+        writeGoal( "-Dmaven.clean.skip=true" /* for maven-clean-plugin 3.0+ */ 
);
         return this;
     }
 
diff --git 
a/surefire-its/src/test/resources/surefire-946-dummy-dependency/pom.xml 
b/surefire-its/src/test/resources/surefire-946-dummy-dependency/pom.xml
index d2fdf862a..ed6c4ea21 100644
--- a/surefire-its/src/test/resources/surefire-946-dummy-dependency/pom.xml
+++ b/surefire-its/src/test/resources/surefire-946-dummy-dependency/pom.xml
@@ -34,6 +34,12 @@
                     <classifier>${distinct.classifier}</classifier>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-install-plugin</artifactId>
+                <version>2.5.2</version>
+                <!-- Version has to be pinned because of 
https://issues.apache.org/jira/browse/MINSTALL-151 -->
+            </plugin>
         </plugins>
     </build>
 </project>
diff --git a/surefire-its/src/test/resources/unicode-testnames/pom.xml 
b/surefire-its/src/test/resources/unicode-testnames/pom.xml
index c186f83c4..fe43d4707 100644
--- a/surefire-its/src/test/resources/unicode-testnames/pom.xml
+++ b/surefire-its/src/test/resources/unicode-testnames/pom.xml
@@ -51,6 +51,15 @@
         <artifactId>maven-surefire-plugin</artifactId>
         <version>${surefire.version}</version>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.8.1</version>
+        <!-- Version pinned because version 3.9.0 and higher of the 
maven-compiler-plugin throw an -->
+        <!-- UnmappableCharacterException when trying to compile the tests in 
this project -->
+        <!-- This happens only on Windows and only if the Java version is 8 - 
17. Not with JDK 19. -->
+        <!-- Further investigation needed to find the cause and a proper fix. 
-->
+      </plugin>
     </plugins>
   </build>
 

Reply via email to