ARTEMIS-4290 Replacing maven-surefire deprecated property forkMode by forkCount and reuseFork

This commit is contained in:
Clebert Suconic 2023-05-24 14:05:33 -04:00
parent b97d711733
commit 80e34bfba7
5 changed files with 12 additions and 6 deletions

View File

@ -1607,7 +1607,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkMode>once</forkMode> <forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<testFailureIgnore>${testFailureIgnore}</testFailureIgnore> <testFailureIgnore>${testFailureIgnore}</testFailureIgnore>
<runOrder>alphabetical</runOrder> <runOrder>alphabetical</runOrder>
<redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile> <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>

View File

@ -326,7 +326,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkMode>always</forkMode> <forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${e2e-tests.skipTests}</skipTests> <skipTests>${e2e-tests.skipTests}</skipTests>
<argLine>${e2e-tests.surefire-extra-args} ${activemq-surefire-argline} ${container-service-argline}</argLine> <argLine>${e2e-tests.surefire-extra-args} ${activemq-surefire-argline} ${container-service-argline}</argLine>
</configuration> </configuration>

View File

@ -442,7 +442,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkMode>always</forkMode> <forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${skipIsolatedIntegrationTests}</skipTests> <skipTests>${skipIsolatedIntegrationTests}</skipTests>
<argLine>-Djgroups.bind_addr=::1 ${activemq-surefire-argline} ${its-surefire-extra-args} -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="java.lang,javax.security,java.util,org.apache.activemq,org.fusesource.hawtbuf"</argLine> <argLine>-Djgroups.bind_addr=::1 ${activemq-surefire-argline} ${its-surefire-extra-args} -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="java.lang,javax.security,java.util,org.apache.activemq,org.fusesource.hawtbuf"</argLine>
</configuration> </configuration>

View File

@ -1321,7 +1321,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkMode>always</forkMode> <forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${skipSmokeTests}</skipTests> <skipTests>${skipSmokeTests}</skipTests>
<argLine>${sts-surefire-extra-args} ${activemq-surefire-argline} ${artemis-distribuiton-lib-dir}</argLine> <argLine>${sts-surefire-extra-args} ${activemq-surefire-argline} ${artemis-distribuiton-lib-dir}</argLine>
</configuration> </configuration>
@ -1350,7 +1351,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkMode>always</forkMode> <forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<includes combine.children="override"> <includes combine.children="override">
<include>**/smoke/upgradeTest/*Test.java</include> <include>**/smoke/upgradeTest/*Test.java</include>
</includes> </includes>

View File

@ -494,7 +494,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<forkMode>always</forkMode> <forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${skipSoakTests}</skipTests> <skipTests>${skipSoakTests}</skipTests>
<includes> <includes>
<include>**/*Test.java</include> <include>**/*Test.java</include>