-1
我正嘗試使用Maven-3.0.4
和jdk 1.6.0_45
來構建應用程序。爲了成功構建應用程序,我需要執行六項任務,其中三項是成功的,但是第四項任務卻一再失敗。Java - 未能執行目標org.apache.maven.plugins:maven-surefire-plugin:2.7.2(或2.12.4或2.16):test
任務(與狀態一起)是: -
[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的萬無一失,插件in order to succeed at the
尤里卡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沒有太多的知識。
查看 /home/user/eureka-1.8.2/eureka-services/target/surefire-reports獲取單個測試結果。 – user1717259
我有,但我不知道我必須尋找什麼。 – kusur
這可能是有測試失敗。測試結果在指定的目錄中。 – user1717259