When deploying a webapp I need to update some variables in UI resources, unzip some assets and concat some files, currently this is achieved via an ant task. I\'m trying to
Since I did not get any answer on my comment I guess that you want to stay using maven-antrun-plugin.
From what I've learned and experienced, if two plugins are to be executed on the same phase, then they will be executed in the order they are declared in pom.xml.
For this to work you will have to add the maven-war-plugin in the list after the maven-antrun-plugin.
org.apache.maven.plugins
maven-antrun-plugin
1.6
deploy-ui
package
false
run
org.apache.maven.plugins
maven-war-plugin
2.3
default-war
none
war-exploded
prepare-package
exploded
custom-war
package
war
Added some more executions so that the default-war is first disabled, then the war is exploded and lastly the war is packaged.