Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1-alpha-1
-
None
-
None
-
maven 2.0.7
Description
I have multiple web applications who share common resources.
So I use the war overlays mechanism.
All seems ok except for common properties files that I want to filter when creating the web applications.
For instance (see war-overlays-filter.zip in attachment):
My war-common war
war-common.war
– WEB-INF\classes\filter.properties (which contains for instance title.main=Prototype ${pom.name}) |
I would like to create the war-filter-overlay web application
war-filter-overlay.war
– WEB-INF\classes\filter.properties (which contains the filtering property title.main=Prototype war-filter-overlay) |
As suggested by Olivier Lamy it tried this configuration
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1-alpha-2-SNAPSHOT</version> <!--version>2.1-alpha-1</version--> <!--version>2.0.2</version--> <configuration> <overlays> <overlay> <groupId>debug.war</groupId> <artifactId>common-overlay</artifactId> <!--targetPath>filter</targetPath--> <filtered>true</filtered> </overlay> </overlays> </configuration> </plugin>
Unfortunately it's not working.