Can't execute "mvn clean package" task in GO CD
<p>I have setup a "Hello World" pipeline with one task <code>mvn clean package</code> in Go CD. I have registered an agent with Java and Maven up and running.</p>

<p>When I trigger the pipeline, the job fails:</p>

<pre><code>12:05:08.655 [go] Start to execute task: &lt;exec command="mvn" &gt; &lt;arg&gt;clean package&lt;/arg&gt; &lt;/exec&gt;.
12:05:08.660 Error happened while attempting to execute 'mvn clean package'.  Please make sure [mvn] can be executed on this agent.
</code></pre>

<p>If I execute <code>mvn clean package</code> in my agent, everything works. What is happening? Is there a place where I can see more specific logs?</p>