getting the below error need a solution
Asked by Naveen Babu:

```
Error occurred while running Task '(2)' of type com.atlassian.bamboo.plugins.maven:task.builder.mvn3.error	23-Mar-2019 20:09:59	com.atlassian.bamboo.task.TaskException: Failed to execute taskerror	23-Mar-2019 20:09:59		at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:104)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:203)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:175)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)error	23-Mar-2019 20:09:59		at java.lang.Thread.run(Thread.java:748)error	23-Mar-2019 20:09:59	Caused by: java.lang.IllegalArgumentException: The working directory C:\Program Files\Bamboo\bin\xml-data\build-dir\ANZ-ANZ4-JOB1\C:\Users\Bharath\Desktop\Bamboo must exist before executing the processerror	23-Mar-2019 20:09:59		at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:138)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:195)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:210)error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)error	23-Mar-2019 20:09:59		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)error	23-Mar-2019 20:09:59		at java.lang.reflect.Method.invoke(Method.java:498)error	23-Mar-2019 20:09:59		at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)error	23-Mar-2019 20:09:59		at com.sun.proxy.$Proxy396.executeExternalProcess(Unknown Source)error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)error	23-Mar-2019 20:09:59		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)error	23-Mar-2019 20:09:59		at java.lang.reflect.Method.invoke(Method.java:498)error	23-Mar-2019 20:09:59		at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)error	23-Mar-2019 20:09:59		at com.sun.proxy.$Proxy396.executeExternalProcess(Unknown Source)error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:72)error	23-Mar-2019 20:09:59		... 16 more
```


Answers:
author: Foong
body: Is the setting "Working subdirectory" in the Maven task configured with "C:\\Users\\Bharath\\Desktop\\Bamboo"?

Bamboo perform build in the working directory, for example "C:\\Program Files\\Bamboo\\bin\\xml-data\\build-dir\\ANZ-ANZ4-JOB1". The setting "Working subdirectory" is used to add subdirectory to the working directory.

By the way, it seems that you have installed Bamboo with Bamboo Home configured as the same directory as Bamboo Installation directory. It is not recommended to use the same directory.