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> On Sunday, August 28, 2022 at 11:22:27 PM UTC-4 J Chen wrote: > 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: > > https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/boms/azure-sdk-bom/README.md > > 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 > > > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/0f927f94-7654-405f-a219-fd37bc090eb0n%40googlegroups.com.
