I have been looking to call a Maven build from Ant as well. Has anyone tried
using the Embedder,
http://maven.apache.org/guides/mini/guide-embedding-m2.html? Looks like it
may provide a nice API that could be used to write Ant tasks for different
goals.

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

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
>




--

- John

Reply via email to