This project is no longer maintained as the Azure blob storage implementation has been moved into the Repository Manager codebase as a supported feature for Pro users. Upgrade to the latest version of Repository Manager to use Azure backed blob stores (Pro feature). Also, issues for this project have been disabled. To open new issues relating to Azure blob stores create a new issue in JIRA.
This project adds Azure Blob Storage backed blob stores to Sonatype Nexus Repository 3.16 thru 3.29.2. It allows Nexus Repository to store the components and assets in Azure Blobs instead of a local filesystem.
To build the project and generate the bundle use Maven:
mvn clean package
To create a docker image and run it with the Azure Blob Storage plugin baked in, run the following commands:
mvn clean package
docker build -t nexus3_azure .
docker run -d -p 8081:8081 --name nexus3azure -v nexus3azure-data:/nexus-data nxrm_azure:latest
To run integration commands, activate the it
profile and include the system properties nxrm.azure.accountName
and
Dnxrm.azure.accountKey
. Integration tests will create temporary storage containers and tests should cleanup when
complete. If you're running tests often check your storage account because it is likely that some containers may be left
behind and not properly cleanup up by the tests.
mvn clean install -P it -Dnxrm.azure.accountName=<accountName> -Dnxrm.azure.accountKey=<accountKey>
In Nexus Repository Manager 3.30.0+ Azure Blob Store support is available for Pro users. This plugin is not going to be updated or supported anymore. Use at your own risk.
While NXRM is stopped, copy target/nexus-blobstore-azure-cloud-0.5.0-SNAPSHOT-shaded.jar in the deploy folder in your nexus 3 distribution. Start nexus and the plugin will be installed.
Log in as admin and create a new blobstore, selecting 'Azure Cloud Storage' as the type.
It is worth noting that this is NOT SUPPORTED by Sonatype, and was a contribution of ours to the open source community (read: you!)
Remember: