2017-04-20 74 views
0

我正在嘗試構建用於java的AWS SDK。我已按照github存儲庫中指定的步驟進行操作。我收到以下錯誤,當我運行AWS Java SDK構建錯誤

mvn clean install 


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 
19.1:test (default-test) on project aws-java-sdk-core: There are test failures. 
[ERROR] 
[ERROR] Please refer to C:\Users\<USER>\Downloads\aws-sdk-java-master\aws-java 
-sdk-core\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 swit 
ch. 
[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 rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc 
eption 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 

[ERROR] mvn <goals> -rf :aws-java-sdk-core 

如何構建SDK和在我的Java項目中使用它的任何建議。

[編輯]

enter image description here

[EDIT 2] [enter image description here] 2

回答

1

綜觀行家輸出好像有在aws-java-sdk-core封裝測試失敗。爲了節省您通過maven輸出回滾以找出哪些測試失敗,您可以讓surefire插件爲您生成HTML報告。只要運行

mvn clean install surefire-report:report

應該吐出來target/site/surefire-report.html

+0

這必將幫助的報告,您的時間 – dakait

+0

我已經編輯了OP包括萬無一失report.html PLZ截圖感謝建議 – dakait

+0

我可以在控制檯窗口中看到一些套接字關閉錯誤(如果有幫助) – dakait