Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deviceinsight/azure-blob-upload-maven-plugin

Maven Plugin that uploads a directory recursively to Azure Blob storage
https://github.com/deviceinsight/azure-blob-upload-maven-plugin

azure azure-storage azure-storage-blob maven maven-plugin

Last synced: 7 days ago
JSON representation

Maven Plugin that uploads a directory recursively to Azure Blob storage

Awesome Lists containing this project

README

        

= General

Use this Maven plugin to recursivly upload the contents of a directory to an Azure blob storage container.
This is for example useful if you use the "Static website" feature for serving web resources.

= Usage

This plugin is available on Maven Central.

Using it interactively:

....
mvn com.deviceinsight.azure:azure-blob-upload-maven-plugin:2.1.0:upload \
-DconnectionString='DefaultEndpointsProtocol=https;AccountName=test;AccountKey=xxx;EndpointSuffix=core.windows.net' \
-DcontainerName=testcontainer \
-DrootDir=/tmp/contents
....

`rootDir` is the local directory you want to upload. `connectionString` is the Azure connection string. `containerName` is the container in the
storage acount that you want to upload into.

Using it in your pom.xml:

....

com.deviceinsight
azure-blob-upload-maven-plugin
2.1.0

....

....


...

com.deviceinsight.azure
azure-blob-upload-maven-plugin
2.1.0


upload
deploy

upload




DefaultEndpointsProtocol=https;AccountName=someaccountname;AccountKey=somekey;EndpointSuffix=core.windows.net
somedir
somecontainer


....

Excluding files from upload:

....


extensions/**/*
**/*.json

....

Only including certain files also works:

....


**/*.html

....

= Releasing

The plugin can be released using:

....
mvn deploy -Prelease
....