Please perform the following steps to include AWS SDK for Java using Apache Maven:
- Assuming that you have already installed Maven in your machine, create a new folder AWS SDK Example or any different name. Go to this folder and execute the following command to set up the environment:
mvn archetype:generate -DartifactId=swfexample -DgroupId=com.packt -DinteractiveMode=false
- To use AWS SDK for Java in your project, you need to add the dependency into the pom.xml file. For swf, it uses the aws-java-sdk-simpleworkflow module. Add the following code in the<dependencies> tag in your pom.xml file:
<dependency><groupId>com.amazonaws</groupId><artifactId>aws-java-sdk-simpleworkflow</artifactId><version>1.11.78</version> ...