Maven建立在竹子上

时间:2012-04-20 23:17:16

标签: java maven bamboo

我在Bamboo(Atlassian Build Server)上创建计划时遇到以下错误。项目在本地构建,配置与其他工作项目相同。如果有人有线索,那将非常感激。

Beginning to execute external process for build 'Connect Framework - ICPFRAMEWORKBUILD -        
Default Job'
... running command line: 
/data/maven//bin/mvn
-Djava.io.tmpdir=/data/tomcat_ci/temp/ICPFRAMEWORK-BUILD-JOB1
clean
deploy
... in: /data/bamboo_data/xml-data/build-dir/ICPFRAMEWORK-BUILD-JOB1/trunk
... using extra environment variables: 
MAVEN2_HOME=/data/maven/
JAVA_HOME=/data/java6
M2_HOME=/data/maven/
bamboo_productionVersion=2.1

PATH=/data/java6/bin:/data/java6/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/   sbin  :/sbin:/home/tomcat/bin
21-Apr-2012 00:59:28    Failing task since return code was -1 while expected 0

1 个答案:

答案 0 :(得分:0)

看来maven bin目录不在你的路径变量中。如果Bamboo在linux环境中运行,你可以添加MAVEN_HOME环境变量并将maven bin目录路径添加到PATH变量。