Skip to content

Instantly share code, notes, and snippets.

@IvanCl4udio
Last active September 26, 2019 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IvanCl4udio/1c6fb2379c4e2e478b7afacfbd751043 to your computer and use it in GitHub Desktop.
Save IvanCl4udio/1c6fb2379c4e2e478b7afacfbd751043 to your computer and use it in GitHub Desktop.
How fix error Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test on CircleCI

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin


To fix that you will need change the configuration of maven-surefire-plugin on pom.xml from project to disable useSystemClassLoader.

Below you will find the excerpt of the file that should be changed.

<!-- Add the following configuration to maven-surefire-plugin on pom file of your project -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment