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
Comment to Chris Clark answer. You can reverse - so in development you do not want to have any constraints (security or jndi, other)
So in development you have commented out section. But in production it will be translated to (with maven profile):
...
and commented section will be visible.