Java – Issue is using test maven, this error is displayed Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)

javamavenselenium-webdriver

When I am trying to test or install my pom.xml I received this error message:

Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
(default-test)

I want to specify that nothing really helped
Mvn clean, Update project, Clean or anything else that I can do related to maven, can anyone help me with others ideas that really can help solve the issue ?

Thanks

Best Answer

Let me know if following info helps you or not !

  • Try latest stable version of surefire-plugin (2.22.2)
  • Other option might be memory Management
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
   <version>2.21.0</version>
  <configuration>
  <testFailureIgnore>true</testFailureIgnore>
    <reuseForks>true</reuseForks>
    <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
  </configuration>
</plugin>