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)
<!-- ${enable.security.end}
<security-constraint>
...
</security-constraint>
${enable.security.start} -->
So in development you have commented out section. But in production it will be translated to (with maven profile):
<!-- -->
<security-constraint>
...
</security-constraint>
<!-- -->
and commented section will be visible.