Don't run GWT tests on JDK 9.
They do naughty things with com.sun classes which don't work on JDK 9.
</sourceFileExcludes>
</configuration>
</plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <!-- Only run GWT tests on JDK 1.8 and earlier (not JDK 9) -->
+ <!-- TODO: when GWT 2.8.3 is released, we can remove this guard -->
+ <profile>
+ <id>java-below-9</id>
+ <activation>
+ <jdk>(,1.8]</jdk>
+ </activation>
+ <build>
+ <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
+ </profile>
+ </profiles>
</project>
