Alter the classloader workaround, and leave link to SO page describing the problem

This commit is contained in:
Shane Kilkelly 2018-11-30 15:21:48 +00:00
parent dd2e9b6945
commit 267d324870

View file

@ -23,12 +23,13 @@
<compilerArgument></compilerArgument> <compilerArgument></compilerArgument>
</configuration> </configuration>
</plugin> </plugin>
<!-- Hack, test loader crashes without this bit --> <!-- Workaround, test loader crashes without this configuration option -->
<!-- See: https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<useSystemClassLoader>false</useSystemClassLoader> <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
</configuration> </configuration>
</plugin> </plugin>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin --> <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin -->