Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test
(default-test) on project smrr: There are test failures.
Please refer to C:\Users\root\Downloads\smrr\target\surefire-reports
for the individual test results.
-> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e
switch. Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please
read the following articles: [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Check Maven network proxy...
====================================
Anyone please solve this problem ?
Maven will try to install this plugin along with dependencies first time in .m2/repository folder, due proxy issues dependencies failing to download.
so,
Update the Maven project:
Steps:
Right-click on "project"
Go to "Maven" >> "Update"
Wait for all the changes to be applied
Commit the changes (if code is on repo)
Run
Also check the artifactid, groupid, version of plugins along with dependencies.
I too got this error when I was running mvn test -Dtest=. This error occurred because name of the testclass was incorrect. Once I fixed the name of the test class this error was fixed.
I feel this error occurs when the argument for -Dtest has no test cases to run.
I hope this helps you..