Using Azure storage

19 views
Skip to first unread message

J Chen

unread,
Aug 28, 2022, 11:22:27 PM8/28/22
to DSpace Technical Support
Hi , 
I tried to use Azure storage. The Azure SDK only support Spring Boot after 2.4.x With DSpace 7.3 (using Spring 2.6) it's possible to use Azure SDK now. 
see:

I added 
 <dependency>
 <groupId>com.azure</groupId>
 <artifactId>azure-sdk-bom</artifactId>
 <version>1.1.0</version>
 <type>pom</type>
 <scope>import</scope>
 </dependency>
 </dependencies>
To "dependencyManagement" of api pom.xml. There's no problem

However after I add library into pom.xml, like
  <dependency> 
 <groupId>com.azure</groupId> 
 <artifactId>azure-storage-blob</artifactId>
 </dependency>
The maven build will generate error by  maven-enforcer-plugin:3.0.0-M3:enforce.

Anyone have succeeded in adding azure storage into POM?

Thanks in advance.

Cheers

J


J Chen

unread,
Sep 1, 2022, 6:40:20 PM9/1/22
to DSpace Technical Support
Eventually we figure out how to deal with the issue by exclusion. With trial and fail, Here's what works in dspace:

<!-- Azure -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-secrets</artifactId>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
</exclusion>
<exclusion>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j</artifactId>
</exclusion>
<exclusion>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
</exclusion>
</exclusions>
</dependency>

Reply all
Reply to author
Forward
0 new messages