aws / aws-swf-build-tools

Apache License 2.0
13 stars 16 forks source link

@Asyncronous not processed, unable to build working AWS SWF application with Maven. #4

Open HarkSolDev opened 7 years ago

HarkSolDev commented 7 years ago

We seem unable to successfully build a working AWS SWF Java application in 1.8 using Maven using the aws-swf-build-tools.

The @Asynchronous annotations seem not to be processed which results in promises being accessed before they are fulfilled resulting in a "not ready" error. Surprisingly we are unable to find any example online using "aws-swf-build-tools" ? Any successful reports use the older "aws-java-sdk-flow-build-tools" dependency and separate annotation / AspectJ processing which generates duplication issues when using the new "aws-swf-build-tools" .

A colleague of mine posted a fuller outline of the issue on the AWS forums here: https://forums.aws.amazon.com/thread.jspa?messageID=753173&#753173

Not sure if this is even in your area of influence - apologies if I should be looking elsewhere.

Thanks !

coachwei commented 7 years ago

@HarkSolDev, you are right that this doesn't work. Such a pain.

joezen777 commented 7 years ago

Same here. All the swf java samples are built using Ant. All the documentation is theoretical.

HarkSolDev commented 7 years ago

@joezen777 - Your post dropped in my mailbox and reminded me to post a solution to this ! We actually managed to get it going. There is a lot of conflicting info online but this worked for us with Java 1.8, and aws-swf-build-tools 1.1 ... search the AWS forums for more info we had discussions there, but I've posted a sanitised version of our pom.xml with comments which might help. ( NB: Had to rename file .txt to get it to upload ).

pom.txt

Good luck !

joezen777 commented 7 years ago

Cool. I ended up using this solution https://github.com/pedropaulovc/aws-flow-maven-eclipse-samples as a template to get it working.