maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MWAR-143) War Overlays and resources filtering
Date Sun, 17 Feb 2008 22:59:28 GMT

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

Olivier Lamy closed MWAR-143.
-----------------------------

    Resolution: Fixed

remove the war plugin version (2.0.2) from your war-common pom.
Here it's more a mvn issue (looks similar to MNG-1024)

> 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.1-alpha-1
>         Environment: maven 2.0.7
>            Reporter: Rémy Sanlaville
>            Assignee: Olivier Lamy
>             Fix For: 2.1-alpha-2
>
>         Attachments: reactor-war-overlay-filter.zip, 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

       

Mime
View raw message