Avoid problems with Surefire when building samples with JDK 10

See gh-12028
This commit is contained in:
Andy Wilkinson 2018-03-03 17:52:00 +00:00
parent 1f5143de70
commit 1bd0313c3d
1 changed files with 20 additions and 0 deletions

View File

@ -247,4 +247,24 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java10</id>
<activation>
<jdk>10</jdk>
</activation>
<properties>
<maven-surefire-plugin.version>2.21.0-SNAPSHOT</maven-surefire-plugin.version>
</properties>
<pluginRepositories>
<pluginRepository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/groups/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</project>