0

I am trying to build the AWS SDK for java. I have followed the steps as specified on the github repository. I'm getting the following error when i run

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

any suggestion on how to build the sdk and use it in my java project.

[EDIT]

enter image description here

[EDIT 2] [enter image description here]2

4

1 回答 1

2

查看 Maven 输出,似乎aws-java-sdk-core包中存在测试失败。为了节省您在 maven 输出中回滚以确定哪些测试失败,您可以让 surefire-plugin 为您生成 HTML 报告。赶紧跑

mvn clean install surefire-report:report

它应该吐出一份报告给target/site/surefire-report.html

于 2017-04-20T15:23:03.937 回答