[英]Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project smrr: There are test failures
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project smrr: There are test failures.
无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.4.3:项目smrr上的test(default-test):存在测试失败。
Please refer to C:\\Users\\root\\Downloads\\smrr\\target\\surefire-reports for the individual test results.
有关各个测试结果,请参阅C:\\ Users \\ root \\ Downloads \\ smrr \\ target \\ surefire-reports。 -> [Help 1]
- > [帮助1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 Re-run Maven using the -X switch to enable full debug logging.
使用-X开关重新运行Maven以启用完整的调试日志记录。
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...
有关错误和可能的解决方案的更多信息,请阅读以下文章:[帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException检查Maven网络代理...
====================================
====================================
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. Maven将尝试在.m2 / repository文件夹中首次安装此插件以及依赖项,因为代理问题依赖项无法下载。 so, Update the Maven project:
所以,更新Maven项目:
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 右键单击“项目”转到“Maven”>>“更新”等待应用所有更改提交更改(如果代码在repo上)运行
Also check the artifactid, groupid, version of plugins along with dependencies. 还要检查artifactid,groupid,插件版本以及依赖项。
I too got this error when I was running mvn test -Dtest= . 当我运行mvn test -Dtest =时,我也遇到了这个错误。 This error occurred because name of the testclass was incorrect.
出现此错误的原因的TestClass的名字是不正确的。 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. 我觉得当-Dtest的参数没有要运行的测试用例时会发生此错误。
I hope this helps you.. 我希望这可以帮助你..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.