Java - 无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.7.2(或2.12.4或2.16):test

时间:2014-02-26 14:46:18

标签: java maven

我正在尝试使用Maven-3.0.4jdk 1.6.0_45构建应用程序。为了成功构建应用程序,我需要执行六个任务,其中三个是成功但第四个是重复失败。

任务(以及状态)是: -

[INFO] Eureka! Clinical Analytics ........................ SUCCESS [15.788s]
[INFO] Eureka Common ..................................... SUCCESS [4:45.548s]
[INFO] Eureka WebApp ..................................... SUCCESS [6:46.893s]
[INFO] Eureka Services ................................... FAILURE [8:59.532s]
[INFO] Eureka Protempa ETL ............................... SKIPPED
[INFO] Eureka EAR ........................................ SKIPPED

它需要'maven-surefire-plugin in order to succeed at the Eureka Services`任务,因为某些测试要做。

我尝试使用插件的maven-surefire-plugin: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没有太多了解。

1 个答案:

答案 0 :(得分:-1)

您必须解决Eureka Services包的测试。

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