简体   繁体   English

无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.4.3:项目smrr上的test(default-test):测试失败

[英]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.

相关问题 未能在项目上执行目标 org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project 无法在项目上执行目标 org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project 无法在项目marytts-lang-en上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test(默认测试):存在测试失败 - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project marytts-lang-en: There are test failures 无法在项目myserver上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(默认测试) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project myserver Intellij - 无法在项目 *** 上执行目标 org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test):有测试失败 - Intellij - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project *** : There are test failures 无法执行目标 org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) 无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(default-test) - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) 无法在项目测试中执行目标 org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test):未执行任何测试 - Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project testing: No tests were executed 目标 org.apache.maven.plugins:maven-surefire-plugin:2.17:test 的执行默认测试失败:分叉过程中出现错误 - Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process 问题是使用测试 maven,显示此错误 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) - 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)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM