Skip to content
Advertisement

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:

JavaScript

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

Advertisement

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? if not, can you try with this plugin?

You can also refer to “Unknown lifecycle phase ”mvn“. You must specify a valid lifecycle phase or a goal” While Deploying the application using Azure

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement