aws-flow-maven-eclipse-samples
aws-flow-maven-eclipse-samples copied to clipboard
Can not compile
Hi, thank you for your great contribution. However, I can not get it to compile. I get the following error:
Could not find artifact com.amazonaws:aws-java-sdk-flow-build-tools:jar:1.10.71 in central (https://repo.maven.apache.org/maven2)
Hello Martin. This is probably a regression caused by PR #1.
Please try building from commit d9938fa0a instead and let me know how it goes.
Thanks Pedro Paulo
On Sep 26, 2016 6:59 AM, "Martin Thurn" [email protected] wrote:
Hi, thank you for your great contribution. However, I can not get it to compile. I get the following error:
Could not find artifact com.amazonaws:aws-java-sdk-flow-build-tools:jar:1.10.71 in central (https://repo.maven.apache.org/maven2)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pedropaulovc/aws-flow-maven-eclipse-samples/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjRsn_8aD16xM6W9v8rqQhHBdeq-D7Aks5qt8RagaJpZM4KGgTp .
This is the solution for the above problem. Go to the lib folder in the repo and run this command.
mvn install:install-file -Dfile=aws-java-sdk-flow-build-tools-1.10.71.jar -DgroupId=com.amazonaws -DartifactId=aws-java-sdk-flow-build-tools -Dversion=1.10.71 -Dpackaging=jar -DgeneratePom=true
If you think to yourself, maybe I should do what AWS says and include the aws-swf-build-tools instead of the above as your dependency, then the build will compile successfully but when you run mvn package, then unit tests will fail. After running the above command and making sure I rely on the above package instead of aws-swf-build-tools, then all unit tests work as expected. Hopefully if you're getting the mysterious IllegalStateException "not ready" message in SWF and flow framework you will find this source. Thanks.