So far, using the exec task seems to work.

<target name="install">
  <exec dir="." executable="C:/java/maven-2.0.4/bin/mvn.bat">
     <arg line="install" />
  </exec>
</target>

This is in a build.xml next to my pom.

,chris



On 11/27/06, Christofer Jennings <[EMAIL PROTECTED]> wrote:

What is the simplest / preferred way to run maven from ant?

My maven project is being integrated with a larger project that uses
ant. I want the process to be painless to ant lovers, if possible.

Thanks in advance
,chris

Reply via email to