Surefire plugin: migrate the deprecated forkMode parameter to forkCount and reuseForks. #8

Manually merged
manuele.simi merged 2 commits from feature/19662 into master 2020-08-15 04:58:39 +02:00
1 changed files with 8 additions and 2 deletions

10
pom.xml
View File

@ -762,9 +762,13 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version> <version>3.0.0-M5</version>
<configuration> <configuration>
<forkMode>always</forkMode> <!-- integration tests require it --> <parallel>classes</parallel> <!-- each class in its own JVM-->
<threadCountClasses>10</threadCountClasses>
<forkCount>3</forkCount> <!-- 3 JVMs at build time -->
<reuseForks>true</reuseForks> <!-- reuse the JVMs across classes -->
<reportsDirectory>${project.test.outputDirectory}</reportsDirectory>
</configuration> </configuration>
</plugin> </plugin>
@ -1081,6 +1085,8 @@
<!-- default value for the distro directory --> <!-- default value for the distro directory -->
<distroDirectory>distro</distroDirectory> <distroDirectory>distro</distroDirectory>
<project.test.outputDirectory>${project.build.directory}/surefire-reports</project.test.outputDirectory>
<java_version>1.8</java_version> <java_version>1.8</java_version>
<java.expected.vm>.*OpenJDK.*</java.expected.vm> <java.expected.vm>.*OpenJDK.*</java.expected.vm>
<maven.compiler.source>${java_version}</maven.compiler.source> <maven.compiler.source>${java_version}</maven.compiler.source>