This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue while Calling Maven from Ant

 
Anand Bhatt
Ranch Hand
Posts: 189
  • 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
  • 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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic