Skip to content

Commit 4a84a83

Browse files
committed
fix surefire parallel config
1 parent 5e3eb4a commit 4a84a83

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

spring-5/pom.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
45
<modelVersion>4.0.0</modelVersion>
56
<groupId>com.baeldung</groupId>
@@ -134,14 +135,35 @@
134135
</execution>
135136
</executions>
136137
</plugin>
138+
<!-- this surefire configuration allows concurrent execution; do not remove -->
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-surefire-plugin</artifactId>
142+
<version>${maven-surefire-plugin.version}</version>
143+
<configuration>
144+
<parallel>methods</parallel>
145+
<useUnlimitedThreads>true</useUnlimitedThreads>
146+
<excludes>
147+
<exclude>**/*IntegrationTest.java</exclude>
148+
<exclude>**/*IntTest.java</exclude>
149+
<exclude>**/*LongRunningUnitTest.java</exclude>
150+
<exclude>**/*ManualTest.java</exclude>
151+
<exclude>**/JdbcTest.java</exclude>
152+
<exclude>**/*LiveTest.java</exclude>
153+
</excludes>
154+
</configuration>
155+
</plugin>
137156
</plugins>
157+
138158
</build>
139159

140160
<properties>
141161
<geronimo-json_1.1_spec.version>1.0</geronimo-json_1.1_spec.version>
142162
<asciidoctor-plugin.version>1.5.6</asciidoctor-plugin.version>
143163
<commons-collections4.version>4.1</commons-collections4.version>
144164
<snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
165+
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
166+
145167
</properties>
146168

147169
</project>

0 commit comments

Comments
 (0)