Expand my Community achievements bar.

software.amazon.awssdk is not resolving

Avatar

Level 2

I am facing a problem as described below.

 

My parent pom doesn't have added any dependencies.

 

Core pom file has the following dependencies 

 

<dependencyManagement>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.20.62</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
</dependency>
</dependencies>


Build is successful, but in the Felix console I'm getting the following error. 

 

software.amazon.awssdk.auth.credentials -- Cannot be resolved
software.amazon.awssdk.awscore.client.builder -- Cannot be resolved
software.amazon.awssdk.awscore.exception -- Cannot be resolved
software.amazon.awssdk.core.exception -- Cannot be resolved
software.amazon.awssdk.core.sync -- Cannot be resolved
software.amazon.awssdk.regions -- Cannot be resolved
software.amazon.awssdk.services.s3 -- Cannot be resolved
software.amazon.awssdk.services.s3.model -- Cannot be resolved

4 Replies

Avatar

Community Advisor

hi @Linu ,

It appears that the necessary dependencies for the software.amazon.awssdk package are not being resolved properly in your project.

You can try adding the following dependencies to your pom.xml file and then rebuilding your project

 

<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>auth</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>aws-core-client</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>aws-core-sdk-exception</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>aws-core-sdk</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>aws-core-sdk-sync</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>regions</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>s3</artifactId>
    <version>2.15.32</version>
</dependency>
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>s3-model</artifactId>
    <version>2.15.32</version>
</dependency>

 

Avatar

Level 2

These dependencies are transitive and it is present in the dependency hierarchy.