Search code examples
aws-java-sdk

AWS Java SDK Build Error


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


Solution

  • Looking at the maven output it seems like there are test failures in the aws-java-sdk-core package. To save you scrolling back through the maven output to figure out what tests have failed you can have the surefire-plugin generate an HTML report for you. Just run

    mvn clean install surefire-report:report

    it should spit out a report to target/site/surefire-report.html