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
This commit is contained in:
parent
1f7f0c18d5
commit
6f3d1797a7
|
|
@ -923,5 +923,22 @@
|
|||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>java9</id>
|
||||
<activation>
|
||||
<jdk>9</jdk>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>--add-modules java.base,java.xml.bind</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue