There are Maven tasks for Ant, but I find them extremely difficult to use. The documentation is just plain awful. The official Maven Ant page simply lists where you can download the JAR file, and that's it. I simply wanted Ant to run an existing pom.xml, but could find no way to do this.
So, I simply did an <exec> to Maven instead. On Tue, Mar 24, 2009 at 3:33 PM, eyalg1972 <[email protected]> wrote: > > Hi, > > I need to know how to run maven from ant. > > Especially- if the pom.xml is in different directory - can you give the > maven the location of the pom.xml as a parameter? (I always run it from the > exact directory). > > Do you use the ant exec task? > > Did someone did it- and can give me an example of how it is done (Including- > parsing the result- success of failure)? > > Thanks > -- > View this message in context: > http://www.nabble.com/Executing-maven-build-from-ant-build-tp22687975p22687975.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- -- David Weintraub [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
