Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM 6.5 AWS package cannot be resolved

Avatar

Level 2

Hi everyone,

 

I'm trying to import aws java sdk into AEM so i can upload files to AWS S3.

My pom file is like this 

<dependency>
  <groupId>org.apache.servicemix.bundles</groupId>
  <artifactId>org.apache.servicemix.bundles.aws-java-sdk</artifactId>
  <version>1.11.714_1</version>
</dependency>
 
Build is fine but when i check the bundle,i find those packages cannot be resolved.
スクリーンショット 2022-09-20 174848.png

Not sure it is version problem or not so really prefer some help.

 

Thanks!

4 Replies

Avatar

Level 2

@zonghuiliu , can you try adding this dependency?

<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-s3 -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>1.12.262</version>
</dependency>

Avatar

Level 2

Hi!Thank you for your response.

 

I've tried adding the dependency and it still cannot be resolved.

Avatar

Level 2

@zonghuiliu

This needs to be added as well - https://mvnrepository.com/artifact/com.adobe.granite/com.adobe.granite.oak.s3connector/1.10.10

Also, I have this jar manually installed on my local and the dependencies are met - amazonosgi_1.0.0.jar

Avatar

Level 2

Hi!

 

I can't find that jar file so i add this dependecy

 

<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-osgi</artifactId>
<version>1.12.305</version>
</dependency>

 

and it returns this error

Could not resolve dependencies for project xx com.adobe.granite:com.adobe.granite.oak.s3connector:jar:1.10.10 was not found in https://repo.maven.apache.org/maven2 during a previous attempt.

 

Could you share where to find that file and how to deal with it.