AWS SDK for Java using Apache Maven

Please perform the following steps to include AWS SDK for Java using Apache Maven:

  1. 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
  1. 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> ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.