maven - Can't execute "mvn clean package" task in GO CD -


i have setup "hello world" pipeline 1 task mvn clean package in go cd. have registered agent java , maven , running.

when trigger pipeline, job fails:

12:05:08.655 [go] start execute task: <exec command="mvn" > <arg>clean package</arg> </exec>. 12:05:08.660 error happened while attempting execute 'mvn clean package'.  please make sure [mvn] can executed on agent. 

if execute mvn clean package in agent, works. happening? there place can see more specific logs?

instead of running following:

command:

mvn clean package 

try use

command:

/bin/bash 

arguments:

-c mvn clean package 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -