Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue while Calling Maven from Ant

 
Anand Bhatt
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created one Maven project( having pom.xml at root). I am using Ant to build my whole project. Now my requirement is that I want to compile my Maven project using build.xml.

I have placed below block/target in build.xml but it's not working for me.


Can some one share the correct sysntax to complie the java code: Below is my pom.xml

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you open a command prompt at D:\TestProject\EventFile_Process and run "mvn install", does it work?

I have never used the maven plugin for ant, but from my reading the artifact:pom task populates the Ant build with the Maven properties. Thus it does not invoke the POM using Maven. To invoke the Maven build, you need to use the artifact:mvn task (http://maven.apache.org/ant-tasks/examples/mvn.html)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic