Running maven (3.5.2) build of a Spring Boot 2.0.2.RELEASE applicaton (generated by web initialiser with web dependencies) fails executing the maven
The solution provideded by jediz did allow my surefire tests to run, but broke class loading in some of my Spring Boot integration tests.
The following maven-surefire-plugin configuration worked for me:
org.apache.maven.plugins
maven-surefire-plugin
-Djdk.net.URLClassPath.disableClassPathURLCheck=true