My maven java project uses the maven-antrun-plugin to execute a deploy.xml ant script that deploys my app. The deploy.xml uses the task and this seem
another solution would be: keep the ant-contrib-1.0b3.jar to a path and then define it like this
then
I put full code example here which you can download https://www.surasint.com/run-ant-with-if-from-maven/