I have a web application Maven project, and I want to customize the web.xml file depending on the Profile that is running. I am using the Maven-War-plugin, which allows me
A new configuration was added to maven-war-plugin in version 2.1-alpha-2.
Its name is filteringDeploymentDescriptors and it does exacly what you want.
This works:
org.apache.maven.plugins
maven-war-plugin
2.4
true
And this also works:
true
More information is available in the official documentation of filteringDeploymentDescriptors.