www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne <...@materne.de>
Subject RE: [Hudson] Command "mvn" not found
Date Sun, 28 Feb 2010 14:13:00 GMT
I had a quick look at the buildfile [1].
The calling target seems to be
<target name="install-engines" depends="merge-engines">
  <exec executable="mvn${maven.suffix}" dir="${basedir}" failonerror="true">
    <arg line="install:install-file -DgroupId=org.apache.bsf
-DartifactId=bsf-engines -Dversion=${bsf.version} -Dpackaging=jar
-DgeneratePom=true
-Dfile=${basedir}/target/bsf-engines-${bsf.version}.jar"/>
  </exec>
</target>

Maybe you could change that to allow specifying the absolute path:

<target name="install-engines" depends="merge-engines">
  <property name="mvn.dir" value="" description="Default to empty string so
Ant could search via PATH"/>
  <exec executable="${mvn.dir}mvn${maven.suffix}" dir="${basedir}"
failonerror="true">
    <arg line="install:install-file -DgroupId=org.apache.bsf
-DartifactId=bsf-engines -Dversion=${bsf.version} -Dpackaging=jar
-DgeneratePom=true
-Dfile=${basedir}/target/bsf-engines-${bsf.version}.jar"/>
  </exec>
</target>

and then add a mvn.dir=... option in Hudson.


Jan


[1]
http://svn.apache.org/repos/asf/jakarta/bsf/branches/bsf3.x/bsf-engines/buil
d.xml



Mime
View raw message