The Maven tasks in Maven should make Ant to do some Maven stuff, so the way 
inverse.

If the <exec> way works you could define a Makro for invoking with that 
signature.
You could also use <java> in that makro instead of <exec>.


Jan

>-----Ursprüngliche Nachricht-----
>Von: David Weintraub [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 24. Oktober 2008 01:16
>An: Ant Users List
>Betreff: Calling Maven in Ant
>
>Okay, without using the <exec> task, how do I call a Maven 
>task from Ant?
>
>I have a pom.xml, so all I want to do is say something like:
>
><maven dir="${prog.dir}" pom="pom.xml" step="package"/>
>
>I looked over the Maven Ant tasks that are in Maven, and they look
>overly complex for what I want. They look like they define the whole
>dependency relationship that's already in the pom.xml. I already have
>a pom.xml, and simply want to execute Maven from Ant.
>
>So, what is the best way of calling Maven from Ant?
>
>--
>David Weintraub
>[EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to