Build error /MAVEN/MojoFailureException- can someone help me how to fix the bamboo error when publi
Asked by Anand:

```
simple	09-Sep-2021 14:27:21	Build Deployment of 'qa-6' on 'qa' started building on agent api-tools-server-rhel.c.api-common-test-04db.internal, bamboo version: 7.2.5simple	09-Sep-2021 14:27:21	Remote agent on host api-tools-server-rhel.c.api-common-test-04db.internalsimple	09-Sep-2021 14:27:21	Build working directory is /instal/bamboo-agent-home/xml-data/build-dir/92143617-92241922simple	09-Sep-2021 14:27:21	Executing build Deployment of 'qa-6' on 'qa'simple	09-Sep-2021 14:27:21	Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'simple	09-Sep-2021 14:27:21	Cleaning working directory '/instal/bamboo-agent-home/xml-data/build-dir/92143617-92241922'simple	09-Sep-2021 14:27:22	Finished task 'Clean working directory task' with result: Successsimple	09-Sep-2021 14:27:22	Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'simple	09-Sep-2021 14:27:22	Preparing to download plan result NAB-E10-6 artifact: Non required shared artifact: [Build File], pattern: [pom.xml]simple	09-Sep-2021 14:27:22	Artifact [Build File] downloaded successfully in 410.7 ms to working directorysimple	09-Sep-2021 14:27:22	Preparing to download plan result NAB-E10-6 artifact: Non required shared artifact: [Mule application], pattern: [**/*.jar] anchored at: [target]simple	09-Sep-2021 14:27:51	Artifact [Mule application] downloaded successfully in 28.27 s to working directorysimple	09-Sep-2021 14:27:51	Finished task 'Download release contents' with result: Successcommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.environment} with Developmentcommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.applicationName} with e1-pricing-engine-qacommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.target} with api-gcp-na-b2b-cluster-devcommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.targetType} with clustercommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.businessGroupId} with e06b8512-262a-4135-abe5-a9a453b342adcommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.businessGroup} with US\B2Bcommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.clientId} with 13334978e13543d182890609f5f66215command	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.secCode} with 3D4467D1Cf3846FF98ee7620c040D43dcommand	09-Sep-2021 14:27:51	Substituting variable: ${bamboo.grantType} with client_credentialssimple	09-Sep-2021 14:27:51	Starting task 'e1-pricing-engine-qa' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'command	09-Sep-2021 14:27:51	Beginning to execute external process for build 'Deployment of 'qa-6' on 'qa''\n ... running command line: \n/opt/apache-maven-3.6.3/bin/mvn -P deploy_app mule:deploy -Danypoint.environment=Development -Danypoint.applicationName=e1-pricing-engine-qa -Danypoint.target=api-gcp-na-b2b-cluster-dev -Danypoint.targetType=cluster -Danypoint.businessGroupId=e06b8512-262a-4135-abe5-a9a453b342ad -Danypoint.businessGroup=US\B2B -Danypoint.clientId=13334978e13543d182890609f5f66215 -Danypoint.secret=3D4467D1Cf3846FF98ee7620c040D43d -Danypoint.grantType=client_credentials -Dapp.env=qa -Dapi.id=17224474\n ... in: /instal/bamboo-agent-home/xml-data/build-dir/92143617-92241922\nbuild	09-Sep-2021 14:27:52	[INFO] Scanning for projects...build	09-Sep-2021 14:27:52	[INFO] build	09-Sep-2021 14:27:52	[INFO] -------------< com.mycompany:e1-pricing-engine-system-api >-------------build	09-Sep-2021 14:27:52	[INFO] Building e1-pricing-engine-system-api 1.0.0-SNAPSHOTbuild	09-Sep-2021 14:27:52	[INFO] --------------------------[ mule-application ]--------------------------build	09-Sep-2021 14:27:52	[INFO] build	09-Sep-2021 14:27:52	[INFO] --- mule-maven-plugin:3.4.0:deploy (default-cli) @ e1-pricing-engine-system-api ---build	09-Sep-2021 14:27:54	[INFO] Deploying artifact e1-pricing-engine-qabuild	09-Sep-2021 14:27:55	[INFO] Found application e1-pricing-engine-qa on cluster api-gcp-na-b2b-cluster-dev. Redeploying application...build	09-Sep-2021 14:28:01	[INFO] Checking application: e1-pricing-engine-qa has startedbuild	09-Sep-2021 14:30:01	[ERROR] Failed to deploy e1-pricing-engine-qa: Deployment has failedbuild	09-Sep-2021 14:30:01	org.mule.tools.client.core.exception.DeploymentException: Deployment has failedbuild	09-Sep-2021 14:30:01	    at org.mule.tools.verification.DefaultDeploymentVerification.assertDeployment (DefaultDeploymentVerification.java:52)build	09-Sep-2021 14:30:01	    at org.mule.tools.verification.arm.ArmDeploymentVerification.assertDeployment (ArmDeploymentVerification.java:36)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.arm.ArmArtifactDeployer.checkApplicationHasStarted (ArmArtifactDeployer.java:102)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.arm.ArmArtifactDeployer.redeployApplication (ArmArtifactDeployer.java:125)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.arm.ArmApplicationDeployer.deploy (ArmApplicationDeployer.java:47)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.DefaultDeployer.deploy (DefaultDeployer.java:53)build	09-Sep-2021 14:30:01	    at org.mule.tools.maven.mojo.deploy.DeployMojo.doExecute (DeployMojo.java:46)build	09-Sep-2021 14:30:01	    at org.mule.tools.maven.mojo.deploy.AbstractMuleDeployerMojo.execute (AbstractMuleDeployerMojo.java:94)build	09-Sep-2021 14:30:01	    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)build	09-Sep-2021 14:30:01	    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)build	09-Sep-2021 14:30:01	    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)build	09-Sep-2021 14:30:01	    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)build	09-Sep-2021 14:30:01	    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)build	09-Sep-2021 14:30:01	    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)build	09-Sep-2021 14:30:01	    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)build	09-Sep-2021 14:30:01	    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)build	09-Sep-2021 14:30:01	    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)build	09-Sep-2021 14:30:01	    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)build	09-Sep-2021 14:30:01	    at java.lang.reflect.Method.invoke (Method.java:498)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)build	09-Sep-2021 14:30:01	Caused by: java.lang.IllegalStateException: Deployment failedbuild	09-Sep-2021 14:30:01	    at org.mule.tools.client.arm.ArmClient.isStarted (ArmClient.java:93)build	09-Sep-2021 14:30:01	    at org.mule.tools.verification.arm.ArmDeploymentVerification$ArmDeploymentVerificationStrategy.lambda$isDeployed$0 (ArmDeploymentVerification.java:43)build	09-Sep-2021 14:30:01	    at org.mule.tools.verification.DefaultDeploymentVerification.lambda$assertDeployment$0 (DefaultDeploymentVerification.java:45)build	09-Sep-2021 14:30:01	    at org.mule.tools.client.OperationRetrier.retry (OperationRetrier.java:76)build	09-Sep-2021 14:30:01	    at org.mule.tools.verification.DefaultDeploymentVerification.assertDeployment (DefaultDeploymentVerification.java:45)build	09-Sep-2021 14:30:01	    at org.mule.tools.verification.arm.ArmDeploymentVerification.assertDeployment (ArmDeploymentVerification.java:36)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.arm.ArmArtifactDeployer.checkApplicationHasStarted (ArmArtifactDeployer.java:102)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.arm.ArmArtifactDeployer.redeployApplication (ArmArtifactDeployer.java:125)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.arm.ArmApplicationDeployer.deploy (ArmApplicationDeployer.java:47)build	09-Sep-2021 14:30:01	    at org.mule.tools.deployment.DefaultDeployer.deploy (DefaultDeployer.java:53)build	09-Sep-2021 14:30:01	    at org.mule.tools.maven.mojo.deploy.DeployMojo.doExecute (DeployMojo.java:46)build	09-Sep-2021 14:30:01	    at org.mule.tools.maven.mojo.deploy.AbstractMuleDeployerMojo.execute (AbstractMuleDeployerMojo.java:94)build	09-Sep-2021 14:30:01	    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)build	09-Sep-2021 14:30:01	    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)build	09-Sep-2021 14:30:01	    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)build	09-Sep-2021 14:30:01	    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)build	09-Sep-2021 14:30:01	    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)build	09-Sep-2021 14:30:01	    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)build	09-Sep-2021 14:30:01	    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)build	09-Sep-2021 14:30:01	    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)build	09-Sep-2021 14:30:01	    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)build	09-Sep-2021 14:30:01	    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)build	09-Sep-2021 14:30:01	    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)build	09-Sep-2021 14:30:01	    at java.lang.reflect.Method.invoke (Method.java:498)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)build	09-Sep-2021 14:30:01	    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)build	09-Sep-2021 14:30:01	[INFO] ------------------------------------------------------------------------build	09-Sep-2021 14:30:01	[INFO] BUILD FAILUREbuild	09-Sep-2021 14:30:01	[INFO] ------------------------------------------------------------------------build	09-Sep-2021 14:30:01	[INFO] Total time:  02:09 minbuild	09-Sep-2021 14:30:01	[INFO] Finished at: 2021-09-09T21:30:01Zbuild	09-Sep-2021 14:30:01	[INFO] ------------------------------------------------------------------------build	09-Sep-2021 14:30:01	[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.4.0:deploy (default-cli) on project e1-pricing-engine-system-api: Failed to deploy [/instal/bamboo-agent-home/xml-data/build-dir/92143617-92241922/e1-pricing-engine-system-api-1.0.0-SNAPSHOT-mule-application.jar] -> [Help 1]build	09-Sep-2021 14:30:01	[ERROR] build	09-Sep-2021 14:30:01	[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.build	09-Sep-2021 14:30:01	[ERROR] Re-run Maven using the -X switch to enable full debug logging.build	09-Sep-2021 14:30:01	[ERROR] build	09-Sep-2021 14:30:01	[ERROR] For more information about the errors and possible solutions, please read the following articles:build	09-Sep-2021 14:30:01	[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptionsimple	09-Sep-2021 14:30:02	Failing task since return code of [/opt/apache-maven-3.6.3/bin/mvn -P deploy_app mule:deploy -Danypoint.environment=Development -Danypoint.applicationName=e1-pricing-engine-qa -Danypoint.target=api-gcp-na-b2b-cluster-dev -Danypoint.targetType=cluster -Danypoint.businessGroupId=e06b8512-262a-4135-abe5-a9a453b342ad -Danypoint.businessGroup=US\B2B -Danypoint.clientId=13334978e13543d182890609f5f66215 -Danypoint.secret=3D4467D1Cf3846FF98ee7620c040D43d -Danypoint.grantType=client_credentials -Dapp.env=qa -Dapi.id=17224474] was 1 while expected 0simple	09-Sep-2021 14:30:02	Finished task 'e1-pricing-engine-qa' with result: Failedsimple	09-Sep-2021 14:30:02	Finalising the build...simple	09-Sep-2021 14:30:02	Stopping timer.simple	09-Sep-2021 14:30:02	Build 92143617-92241922-92930127 completed.simple	09-Sep-2021 14:30:02	Finished processing deployment result Deployment of 'qa-6' on 'qa'
```


Answers:
author: Anand
body: I got the answer- missing QA properties in YAML file. Thank you

comments: author: Kishan Sharma
body: Could you please post about the exact file where the properties were missing ? Thank you!


author: Anand
body: On anypoint studio- config properties.yaml. attaching screenshot here.  

![bamboo.png](https://community.atlassian.com/t5/image/serverpage/image-id/159818i3EEC03B858141CDD/image-size/large?v=v2&px=999 "bamboo.png")


author: Kishan Sharma
body: Thank you for sharing Anand ?


Tags: atl-gruland

cloud

confluence-cloud