Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter Jenkins.
The following error I got from building a maven project from jenkins.
I added this to my pom xml plugins. Which Resolved all my problems.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With