deviceinsight / azure-blob-upload-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWMaven Plugin that uploads a directory recursively to Azure Blob storage
License: Apache License 2.0
Maven Plugin that uploads a directory recursively to Azure Blob storage
License: Apache License 2.0
Hello,
I use your plugin to upload the contents of directory to an azure storage account and i get the following error :
[error] org.apache.maven.plugin.MojoExecutionException: The specified container does not exist.
at com.deviceinsight.azureblobupload.UploadMojo.sendFileToCloud(UploadMojo.java:87)
at com.deviceinsight.azureblobupload.UploadMojo.execute(UploadMojo.java:50)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: com.microsoft.azure.storage.StorageException: The specified container does not exist.
at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:89)
at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:305)
at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:175)
at com.microsoft.azure.storage.blob.CloudBlockBlob.uploadFullBlob(CloudBlockBlob.java:877)
at com.microsoft.azure.storage.blob.CloudBlockBlob.upload(CloudBlockBlob.java:712)
at com.microsoft.azure.storage.blob.CloudBlob.uploadFromFile(CloudBlob.java:1726)
at com.microsoft.azure.storage.blob.CloudBlob.uploadFromFile(CloudBlob.java:1698)
at com.deviceinsight.azureblobupload.UploadMojo.sendFileToCloud(UploadMojo.java:84)
here is my config in pom.xml
<plugin>
<groupId>com.deviceinsight.azure</groupId>
<artifactId>azure-blob-upload-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<id>upload</id>
<phase>deploy</phase>
<goals>
<goal>upload</goal>
</goals>
</execution>
</executions>
<configuration>
<connectionString>DefaultEndpointsProtocol=https;AccountName=*****=******;EndpointSuffix=****</connectionString>
<rootDir>${project.build.directory}/upload</rootDir>
</configuration>
</plugin>
Can you help me plz.
Khaled
This would allow users to upgrade without making a breaking change to the configuration.
I can supply a pull-request if you agree with my suggestion.
I encountered issues including images in the HTML due to Azure reporting an incorrect content type.
I'm using an Ascii Doctor extension that gets added to the output folder. Since the extension is not needed in the upload, I would like to exclude it.
<excludes>
<exclude>extensions/**/*</exclude>
</excludes>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.