Maven Repository Software Amazon Awssdk Aws Sdk Java
The AWS SDK for Java 1.x reached end-of-support on December 31, 2025. We recommend that you migrate to the AWS SDK for Java 2.x to continue receiving new features, availability improvements, and security updates. Use the SDK with Apache Maven You can use Apache Maven Note You must have Maven installed to use the guidance in this topic.
If it isnât already installed, visit http://maven.apache.org/ Create a new Maven package To create a basic Maven package, open a terminal (command-line) window and run: mvn -B archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=org.example.basicapp \ -DartifactId=myapp Replace org.example.basicapp with the full package namespace of your application, and myapp with the name of your project (this will become the name of the directory for your project). By default, creates a project template for you using the quickstart-DarchetypeArtifactId argument to the archetype:generate command.
For example: mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-webapp \ -DgroupId=org.example.webapp \ -DartifactId=mywebapp Note Much more information about creating and configuring projects is provided in the Maven Getting Started Guide Configure the SDK as a Maven dependency To use the AWS SDK for Java in your project, youâll need to declare it as a dependency in your projectâs pom.xml file. Beginning with version 1.9.0, you can import individual components or the entire SDK.
Specifying individual SDK modules To select individual SDK modules, use the AWS SDK for Java bill of materials (BOM) for Maven, which will ensure that the modules you specify use the same version of the SDK and that theyâre compatible with each other.
To use the BOM, add a <dependencyManagement> section to your applicationâs pom.xml file, adding aws-java-sdk-bom as a dependency and specifying the version of the SDK you want to use: <dependencyManagement> <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-bom</artifactId> <version>1.11.1000</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> To view the latest version of the AWS SDK for Java BOM that is available on Maven Central, visit: https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-bom<dependencies> section of your projectâs pom.xml file. You can now select individual modules from the SDK that you use in your application.
Because you already declared the SDK version in the BOM, you donât need to specify the version number for each component. <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-s3</artifactId> </dependency> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-dynamodb</artifactId> </dependency> </dependencies> You can also refer to the AWS Code Sample Catalog to learn what dependencies to use for a given AWS service. Refer to the POM file under a specific service example.
For example, if you are interested in the dependencies for the AWS S3 service, see the complete example Importing all SDK modules If you would like to pull in the entire SDK as a dependency, donât use the BOM method, but simply declare it in your pom.xml like this: <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk</artifactId> <version>1.11.1000</version> </dependency> </dependencies> Build your project Once you have your project set up, you can build it using Mavenâs package command: mvn package This will create your –0—jar file in the target directory.
Build the SDK with Maven You can use Apache Maven to build the SDK from source. To do so, download the SDK code from GitHub mvn clean install
People Also Asked
- Maven Repository: software.amazon.awssdk » aws-sdk-java
- Maven Central: software.amazon.awssdk:aws-sdk-java
- The official AWS SDK for Java - Version 2 - GitHub
- Use the SDK with Apache Maven - AWS SDK for Java 1.x
- AWS SDK for Java with Maven: A Comprehensive Guide
- Set up an Apache Maven project that uses the AWS SDK for Java 2.x
- Maven Repository: software.amazon.awssdk » aws-sdk-java » 2.42.29
Maven Repository: software.amazon.awssdk » aws-sdk-java?
To use the BOM, add a <dependencyManagement> section to your applicationâs pom.xml file, adding aws-java-sdk-bom as a dependency and specifying the version of the SDK you want to use: <dependencyManagement> <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-bom</artifactId> <version>1.11.1000</version> <type>pom</type> <scope>import</scope> </dependency> </depend...
Maven Central: software.amazon.awssdk:aws-sdk-java?
To use the BOM, add a <dependencyManagement> section to your applicationâs pom.xml file, adding aws-java-sdk-bom as a dependency and specifying the version of the SDK you want to use: <dependencyManagement> <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-bom</artifactId> <version>1.11.1000</version> <type>pom</type> <scope>import</scope> </dependency> </depend...
The official AWS SDK for Java - Version 2 - GitHub?
Specifying individual SDK modules To select individual SDK modules, use the AWS SDK for Java bill of materials (BOM) for Maven, which will ensure that the modules you specify use the same version of the SDK and that theyâre compatible with each other.
Use the SDK with Apache Maven - AWS SDK for Java 1.x?
The AWS SDK for Java 1.x reached end-of-support on December 31, 2025. We recommend that you migrate to the AWS SDK for Java 2.x to continue receiving new features, availability improvements, and security updates. Use the SDK with Apache Maven You can use Apache Maven Note You must have Maven installed to use the guidance in this topic.
AWS SDK for Java with Maven: A Comprehensive Guide?
For example: mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-webapp \ -DgroupId=org.example.webapp \ -DartifactId=mywebapp Note Much more information about creating and configuring projects is provided in the Maven Getting Started Guide Configure the SDK as a Maven dependency To use the AWS SDK for Java in your project, youâll need to...