Skip to content
Advertisement

Tag: blob

Azure Blob Storage Java SDK 12 extract file name from blob name

let’s say I have blob structure like this: dir0 ├── dir1 │ ├── file11 │ └── file12 ├── dir2 └── dir3 After listing the dir1 that contains two files file11, file12 with listBlobsByHierarchy(“dir0/dir1/”) method I’m getting two blobs with blobName property set to dir0/dir1/file11 and dir0/dir1/file12, so <virtual_path>/<file_name>. That’s OK, but in some point I need to get the <file_name>

Unknown lifecycle phase “.mainClass=com.blobs.quickstart.App”

I ran through this demo (using PowerShell). Everything was fine until I ran the line: mvn exec:java -Dexec.mainClass=”com.blobs.quickstart.App” -Dexec.cleanupDaemonThreads=false then I got the below exception: This is the link from where I followed the steps https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java?tabs=powershell#get-the-connection-string Answer As ManojReddy-MSFT suggested: In most cases, this error occurs because of the missing plugin http://www.mojohaus.org/exec-maven-plugin/index.html Can you verify if you have this plugin?

Advertisement