User guide

To download and install the SDK for Java
1. Download the SDK for Java from the SDK web page at http://aws.amazon.com/sdkforjava.
2. After downloading the SDK, extract the contents into a directory.
Using the SDK for Java with Apache Maven
You can use Apache Maven to build SDK for Java projects and to build the SDK for Java itself.
Configuring the SDK as a Maven dependency
Beginning with version 1.9.0 of the SDK for Java, a modular Maven project structure can be used to
selectively pick components of the SDK that you want in your project. For example, if your Maven project
uses only Amazon S3 and DynamoDB, you can configure the dependencies in your project’s pom.xml
to pick up only those components, like this:
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-dynamodb</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
In this example, the same SDK version is used for each of the components that are declared as
dependencies. Individual components are versioned together, so you can easily pick compatible versions
of different components.
If you would like to pull the entire SDK for Java as a dependency, declare it in your pom.xml like this:
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
Building the SDK with Maven
You can use Apache Maven to build the SDK for Java from source.To do so, download the SDK code
from GitHub, unpack it locally, and then execute the following Maven command:
mvn clean install
Version v1.0.0
6
AWS SDK for Java Developer Guide
Using the SDK for Java with Apache Maven