Skip to content

Commit 6f3d179

Browse files
committed
Improve Java9 compatibility
This commit workarounds a bug in Surefire, see https://issues.apache.org/jira/browse/SUREFIRE-1424 It also adds `javax.xml.bind` as it is no longer provided by default with Java9 See gh-7226
1 parent 1f7f0c1 commit 6f3d179

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

spring-boot-parent/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,5 +923,22 @@
923923
</plugins>
924924
</build>
925925
</profile>
926+
<profile>
927+
<id>java9</id>
928+
<activation>
929+
<jdk>9</jdk>
930+
</activation>
931+
<build>
932+
<plugins>
933+
<plugin>
934+
<groupId>org.apache.maven.plugins</groupId>
935+
<artifactId>maven-surefire-plugin</artifactId>
936+
<configuration>
937+
<argLine>--add-modules java.base,java.xml.bind</argLine>
938+
</configuration>
939+
</plugin>
940+
</plugins>
941+
</build>
942+
</profile>
926943
</profiles>
927944
</project>

0 commit comments

Comments
 (0)