Java-未能执行目标org.apache.maven.plugins:maven surefire plugin:2.7.2(或2.12.4或2.16):测试

Java-未能执行目标org.apache.maven.plugins:maven surefire plugin:2.7.2(或2.12.4或2.16):测试,java,maven,Java,Maven,我正在尝试使用Maven-3.0.4和jdk1.6.045构建一个应用程序。为了成功地构建应用程序,我需要执行六项任务,其中三项是成功的,但第四项是反复失败的 任务(以及状态)包括:- 它需要“maven surefire plugin才能成功完成Eureka Services`任务,因为需要完成某些测试 我尝试过使用maven surefire插件:2.7.2\2.12.4\2.16版本的插件,但错误总是一样的,如下所示:- [INFO] ---------------------------

我正在尝试使用
Maven-3.0.4
jdk1.6.045
构建一个应用程序。为了成功地构建应用程序,我需要执行六项任务,其中三项是成功的,但第四项是反复失败的

任务(以及状态)包括:-

它需要“maven surefire plugin
才能成功完成
Eureka Services`任务,因为需要完成某些测试

我尝试过使用
maven surefire插件:2.7.2\2.12.4\2.16
版本的插件,但错误总是一样的,如下所示:-

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2 (or 2.12.4 or 2.16):test (default-test) on project eureka-services: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/user/eureka-1.8.2/eureka-services/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
我不知道现在该怎么办。请给我一些建议


注意:-我是在终端上做的,因为我对Eclipse没有太多的了解。

您必须解决Eureka服务包的测试问题


您可以在这里找到日志/home/user/eureka-1.8.2/eureka services/target/surefire reports。

查看/home/user/eureka-1.8.2/eureka-services/target/surefire-reports中的单个测试结果。我有,但我不知道我要查找什么。很可能有测试失败。测试结果在指定的目录中。在您给出输出之前,必须有一行告诉您哪些测试失败或出错。然后在
surefire reports
目录中,您将找到每个测试类的文本文件,其中包含详细的测试output@Gorkk是的,就是这样。
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2 (or 2.12.4 or 2.16):test (default-test) on project eureka-services: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/user/eureka-1.8.2/eureka-services/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command