0
votes

How do you start a ant build from a maven pom when ant build file is in different directory?

I have a ant build file in the following location.

src/main/resources/build/build.xml

I have a pom.xml in the root of the project.

I want to call the ant build from the maven build. Due to the build.xml being a legacy build it only runs from the command line when you are in the src/main/resources/build/ directory. I want a quick way to kick of this ant build as though i am in that directory. What is the best way to do this?

Thanks,

Matt

1

1 Answers

0
votes

You should use the maven ant plugin. Link