I made the change you suggested - and now have a new phase in my environment.
Using a profile, my ant tasks get fired correctly on the pre-package phase.
My issue now is that I need to bind the WAR plugin exploded goal to the 'pre-package' phase - not the 'package' phase.
It is not getting fired in the new pre-package phase as I expect.
I have locally installed a snapshot version of the WAR plugin with the annotation phase changed and I can see the change in the plugin.xml.
<description>Generate the exploded webapp</description>
I've configured the WAR plugin in my project pom to use the local snapshot and I have the debug line
[DEBUG] maven-war-plugin: using locally installed snapshot
produced when I execute >mvn pre-package
but it's not running the war:exploded goal!
Any ideas. Is there a configuration cache I need to reset? Do the plugin phase bindings get evaluated at runtime every time?
Any help appreciated.