我正在尝试为java构建AWS
SDK。我已经按照github存储库中指定的步骤进行操作。我运行
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项目中使用它的任何建议。
[编辑]
[编辑2] [] 2
答案 0 :(得分:1)
查看maven输出,似乎aws-java-sdk-core
包中存在测试失败。为了节省您向后滚动maven输出以确定哪些测试失败,您可以让surefire-plugin为您生成HTML报告。跑吧
mvn clean install surefire-report:report
它应该向target/site/surefire-report.html