Skip to content

Commit eddf273

Browse files
committed
Configuring Surefire for samples when running on Java 9
See gh-7226
1 parent 4caeed2 commit eddf273

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

spring-boot-samples/pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,26 @@
259259
</snapshots>
260260
</pluginRepository>
261261
</pluginRepositories>
262+
<profiles>
263+
<profile>
264+
<id>java9</id>
265+
<activation>
266+
<jdk>9</jdk>
267+
</activation>
268+
<properties>
269+
<aspectj.version>1.9.0.BETA-7</aspectj.version>
270+
</properties>
271+
<build>
272+
<plugins>
273+
<plugin>
274+
<groupId>org.apache.maven.plugins</groupId>
275+
<artifactId>maven-surefire-plugin</artifactId>
276+
<configuration>
277+
<argLine>--add-modules java.base,java.xml.bind</argLine>
278+
</configuration>
279+
</plugin>
280+
</plugins>
281+
</build>
282+
</profile>
283+
</profiles>
262284
</project>

0 commit comments

Comments
 (0)