AWS SDK dependencies are not resolved in core Bundle in AEM Cloud | Community
Skip to main content
AMANATH_ULLAH
Community Advisor
Community Advisor
January 18, 2023
Solved

AWS SDK dependencies are not resolved in core Bundle in AEM Cloud

  • January 18, 2023
  • 3 replies
  • 1470 views

Hi,

We are using AWS secret manager service to get the secret key values in AEM project

When I add AWS SDK maven dependency in pom.xml, i am facing error as bundle cannot be resolved

 

 

Below is the AWS SDK dependency i am using

<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>secretsmanager</artifactId>
<version>2.19.16</version>
</dependency>

 

We are using AEM cloud 

 

Please suggest on how to resolve this issue 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrijeshYadav

Given dependency is only jar which is not bundle supported in AEM. So you have to convert it to bundle http://ykyuen.wordpress.com/2010/03/12/maven-create-a-osgi-bundle-using-maven-bundle-plugin/

 

3 replies

rampai
Community Advisor
Community Advisor
January 18, 2023

Hi @amanath_ullah,

 

Why don't you use Cloud manager Environment variables to store AEM related secrets instead?

 

Thanks,

Ram

ArpitVarshney
Community Advisor
Community Advisor
January 18, 2023

Hi @amanath_ullah 

 

It might be possible the jar you are adding via maven dependency is not available as a bundle in target AEM. You need to add third party bundle.

 

You can follow this blog for the same. 

https://www.linkedin.com/pulse/how-add-third-party-bundle-you-aem-package-veena-vikraman

 

Regards,

Arpit Varshney

BrijeshYadav
BrijeshYadavAccepted solution
Level 5
January 19, 2023

Given dependency is only jar which is not bundle supported in AEM. So you have to convert it to bundle http://ykyuen.wordpress.com/2010/03/12/maven-create-a-osgi-bundle-using-maven-bundle-plugin/