How to set display-name in maven-war-plugin for web.xml
maven, maven-war-plugin, web.xml
Solution
Much more simplier...
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
</configuration>
</plugin>
see filteringDeploymentDescriptors's documentation. This is available since 2.1 but is disabled per default.
Problem
How can I define the web.xml display-name via maven using the maven-war-plugin? In maven-ear-plugin there is an configuration option displayName to set the EAR / application.xml display-name attribute. Wrong approach? Just set it manually in web.xml?