Not able to connect to Azure Blob Storage | Community
Skip to main content
adivj95
Level 2
July 31, 2023
Solved

Not able to connect to Azure Blob Storage

  • July 31, 2023
  • 1 reply
  • 960 views

I want to connect to azure blob storage and fetch a image from it using SAS key with java 

for this i have followed the steps mentioned here ( https://learn.microsoft.com/en-us/java/api/overview/azure/storage-blob-readme?view=azure-java-stable ) 

and added dependencies

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-sdk-bom</artifactId>
<version>{bom_version_to_target}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

in parent POM

 

<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
</dependency>
</dependencies>

in child POM

but  its giving error when installing it on AEM server

Please help me resolve this 

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 Sady_Rifat

Hello @adivj95 ,

Your dependency JAR is not OSGI-ready. That's why it's not resolving. See this documentation for Embedding Third-party dependency: https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html 

Still, if you are confused with this documentation there is a commit that shows exactly where you need to change: https://github.com/Sady-Rifat/aem-demo/commit/65f8ce112744134728bf2f85d7bc5f131a2ef290 

Hope this helps you.

1 reply

Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
July 31, 2023

Hello @adivj95 ,

Your dependency JAR is not OSGI-ready. That's why it's not resolving. See this documentation for Embedding Third-party dependency: https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html 

Still, if you are confused with this documentation there is a commit that shows exactly where you need to change: https://github.com/Sady-Rifat/aem-demo/commit/65f8ce112744134728bf2f85d7bc5f131a2ef290 

Hope this helps you.