Skip to content

Compiler error when aws-java-sdk in pom.xml was updated from 1.x.x to 2.x.x #3436

@pjonnlagadda

Description

@pjonnlagadda

Describe the bug

As i am trying to migrate aws-sdk-java from V1 to V2,
to make start i have replaced the artifacts in pom.xml accordingly for S3, STS, SQS and IAM etc.. . Later when i am trying to build, getting few of the compile errors saying that, classes like AmazonSQS, SQSActions are missing and many other compile errors for few other classes. Seems the package "com.amazonaws.auth.policy" is missing.
Ex:-
constructor S3BucketResource in class com.amazonaws.auth.policy.resources.S3BucketResource cannot be applied to given types;
required: java.lang.String
found: java.lang.String,java.lang.String

Expected Behavior

Is there any smooth way to replace V2 from V1?

Current Behavior

getting few of the compile errors saying that, classes like AmazonSQS, SQSActions are missing

Reproduction Steps

Replace the artifacts in pom.xml accordingly for S3, STS, SQS and IAM etc.

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

AWS SDK for Java 2.0

JDK version used

java 1.8

Operating System and version

Windows 11 Enterprise

Metadata

Metadata

Assignees

Labels

documentationThis is a problem with documentation.guidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions