Skip to content

Commit e219cfd

Browse files
committed
Upgrade surefire
Add second execution block to run tests with true MultiRelease jar
1 parent feb7c60 commit e219cfd

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

plexus-java/pom.xml

+19-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<plugin>
2323
<groupId>org.apache.maven.plugins</groupId>
2424
<artifactId>maven-surefire-plugin</artifactId>
25-
<version>2.20</version>
25+
<version>2.21.0</version>
2626
</plugin>
2727
</plugins>
2828
</pluginManagement>
@@ -130,6 +130,24 @@
130130
</execution>
131131
</executions>
132132
</plugin>
133+
<!-- Reuse unittest configuration, now run it as true Multi Release jar -->
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-surefire-plugin</artifactId>
137+
<executions>
138+
<execution>
139+
<id>jdk9</id>
140+
<phase>integration-test</phase>
141+
<goals>
142+
<goal>test</goal>
143+
</goals>
144+
<configuration>
145+
<!-- force new configuration, otherwise surefire won't run a second time -->
146+
<failIfNoTests>true</failIfNoTests>
147+
</configuration>
148+
</execution>
149+
</executions>
150+
</plugin>
133151
</plugins>
134152
</pluginManagement>
135153
</build>

0 commit comments

Comments
 (0)