I am trying to deploy a mule application on cloud hub using Azure Devops. While trying to deploy the application I am running a job which have a task Maven that is suppose to run a maven command:
mvn package deploy -DmuleDeploy -Dcloud.env=Sandbox -Danypoint.businessGroup=TestBusiness -Dcloudhub.workerType=Small -DcloudhubAppName=testdeployment -Dmule.version=4.2.2 -Dcloud.user=UserUser -Dcloud.password=***
That should deploy the build using the pom.xml file on cloud hub But I am getting this error:
Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format
Below is my pom.xml file ` 4.0.0
com.mycompany
testdeployment
1.0.0-SNAPSHOT
mule-application
testdeployment
UTF-8
UTF-8
4.2.2
3.3.5
mvn deploy
org.mule.tools.maven
mule-maven-plugin
${mule.maven.plugin.version}
true
https://anypoint.mulesoft.com
${app.runtime}
${anypoint.username}
${anypoint.password}
${businessGroup}
${workers}
${workerType}
us-west-1
${environment}
${applicationName}
${mule.env}
${encrypt.key}
${anypoint.platform.client_id}
${anypoint.platform.client_secret}
${ilg.api.version}
true
org.mule.connectors
mule-http-connector
1.5.11
mule-plugin
org.mule.connectors
mule-sockets-connector
1.1.5
mule-plugin
anypoint-exchange-v2
Anypoint Exchange
https://maven.anypoint.mulesoft.com/api/v2/maven
default
mulesoft-releases
MuleSoft Releases Repository
https://repository.mulesoft.org/releases/
default
mulesoft-releases
mulesoft release repository
default
https://repository.mulesoft.org/releases/
false
`