You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2008/02/09 23:20:28 UTC

[jira] Updated: (MWAR-143) War Overlays and resources filtering

     [ http://jira.codehaus.org/browse/MWAR-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MWAR-143:
------------------------------

         Assignee: Olivier Lamy
    Fix Version/s: 2.1-alpha-2

> War Overlays and resources filtering
> ------------------------------------
>
>                 Key: MWAR-143
>                 URL: http://jira.codehaus.org/browse/MWAR-143
>             Project: Maven 2.x War Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.0.2, 2.1-alpha-1, 2.1-alpha-2
>         Environment: maven 2.0.7
>            Reporter: Rémy Sanlaville
>            Assignee: Olivier Lamy
>             Fix For: 2.1-alpha-2
>
>         Attachments: war-overlays-filter.zip
>
>
> I have multiple web applications who share common resources.
> So I use the [war overlays mechanism|http://maven.apache.org/plugins/maven-war-plugin/overlays.html].
> 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|http://www.nabble.com/War-Overlays-and-resources-filtering-td15272334s177.html#a15272334] it tried this configuration
> {code:xml} 
>       <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>
> {code} 
> Unfortunately it's not working.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira