If you need to copy the web.xml file in order to replace some
filter tokens or simply perform some custom modification to it,
simply write a pre-goal to the war:war goal in which
you perform the manipulation. Then set the
maven.war.webxml property to point to your modified
web.xml.