2017-04-20 75 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