Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project smrr: There are test failures

风流意气都作罢 提交于 2019-12-05 01:56:58

问题


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 ?


回答1:


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.




回答2:


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..



来源:https://stackoverflow.com/questions/25757539/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-4-3test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!