Migrating v1 to v2 for uploading images to S3 bucket #5865
Unanswered
greenenvy17
asked this question in
Migration from v1 to v2
Replies: 1 comment
-
They should all be there, but you don't have to explicitly add them to the pom. All you need to add is the service module (s3 in this case), and the SDK will include its inner dependencies. So try this: <properties>
<aws.java.sdk.version>2.30.13</aws.java.sdk.version>
</properties>
<dependencyManagement>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>${aws.java.sdk.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
.
.
.
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<exclusions>
<exclusion>
<groupId>software.amazon.awssdk</groupId>
<artifactId>netty-nio-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependencies> Note that the artifactId in Relevant documentation: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I was rewriting a part of code that used the version 1.X.X of the aws sdk. We only need to upload or remove images from an S3 bucket in a spring boot project. I was able to produce a working piece of code, but i'm a bit confused by the amount of transitive dependencies that s3 bring with it.
The pom file looks like this:
When i execute mvn dependency:tree i see a lot of deps for s3

Can something of the transitive dependencies be omitted or should all stay there?
Let me know if you need the part of code related to the S3Client and it's use.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions