I'm looking to rename a couple of files before the actual WAR package
want to rename it to "my-20100106.js" then do a search and replace on
all references to "my.js" and have them reference the new file.
I would love to use the maven-antrun-plugin, but it doesn't look like
there is a stage where the war plugin would cede control, or allow
something to pre-process the files that have been copied to the target
I have also tried copying all source to a target/mybuild directory,
processed them as needed, then use the warSourceDirectory parameter to
reference target/mybuild. However, it appears as if
warSourceDirectory is just the directory that the war plugin copies
Any ideas or input appreciated.
Lukas Bradley . President
Thrust Interactive http://www.thrustinteractive.com
The prepare-package phase doesn't get you there? This was introduced
around 2.1 or so..
There are 10 types of people in this world, those
that can read binary and those that can not.
war:war is called during package phase, so at prepare-package phase you have
nothing available. I think the war-plugin should be updated to take that
A possible workaround is to bind an execution of war:exploded during the
prepare-phase, then you do your stuff with antrun, and finally it is
packaged using war:war.