1

I have directory called 'maventest' which contains a 'pom.xml' file. The exact location is:
C:\CIA-LDM-Branches-rc\LDMRC160\tools\maventest\pom.xml
Now I want to write an ant build file which will change into above directory and run the mvn command:
mvn dependency:copy-dependencies

Can any one please provide me the code for this.

Slav
  • 27,057
  • 11
  • 80
  • 104
Som Sarkar
  • 289
  • 1
  • 5
  • 24
  • There is a number of valid answers provided here: http://stackoverflow.com/questions/7581156/how-to-call-for-a-maven-goal-within-an-ant-script – Slav Mar 14 '14 at 20:12
  • See also: https://maven.apache.org/ant-tasks/ – Mark O'Connor Mar 14 '14 at 20:37
  • possible duplicate of [How to run maven project using an ant script?](http://stackoverflow.com/questions/21411659/how-to-run-maven-project-using-an-ant-script) – Paul Sweatte Apr 13 '14 at 00:54

0 Answers0