Maven
Maven Test fails
When you are under an OpenJDK 8 and try to execute Maven tests, an exception occurs with the following message Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter, there are two possible solutions, one is documented here.
-
Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter (https://medium.com/@betterjavacodecom/could-not-find-or-load-main-class-org-apache-maven-surefire-booter-forkedbooter-f7ad92653a92)
The other is to configure Maven to not use the System Class Loader which can be configure in Maven with the following code.
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
</plugins>
</build>