maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Nicoll (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MWAR-72) Need ability to protect (or exclude) resource from being destroyed during war overlay.
Date Sun, 12 Aug 2007 10:46:48 GMT

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

Stephane Nicoll closed MWAR-72.
-------------------------------

         Assignee: Stephane Nicoll
       Resolution: Fixed
    Fix Version/s: 2.1-alpha-1

Added general war overlay handling with a first-win strategy.

Staging site available: http://people.apache.org/~snicoll/maven-stage-repo/

> Need ability to protect (or exclude) resource from being destroyed during war overlay.
> --------------------------------------------------------------------------------------
>
>                 Key: MWAR-72
>                 URL: http://jira.codehaus.org/browse/MWAR-72
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Joakim Erdfelt
>            Assignee: Stephane Nicoll
>             Fix For: 2.1-alpha-1
>
>
> If you have a template war TEMPLATE.war that is used to overlay the current project war
CURRENT.war, and there are values in the CURRENT.war that should never be overlaid, a mechanism
needs to exist to protect those resources.
> Example:
> template.war uses xwork - /WEB-INF/classes/xwork.xml
> current.war also uses xwork.
> when you overlay template.war onto current.war you want to prevent /WEB-INF/classes/xwork.xml
from being overwritten.
>  desired.
> {noformat}
> <plugin>
>   <groupId>org.apache.maven.plugin</groupId>
>   <artifactId>maven-war-plugin</artifactId>
>   <configuration>
>     <protectionFileSets>
>       <protectionFileSet>
>         <directory>/WEB-INF</directory>
>         <includes>
>           <include>classes/xwork.xml</include>
>         </includes>
>       </protectionFileSet>
>     </protectionFileSets>
>   </configuration>
> </plugin>
> {noformat}
> You can use the maven-shared/file-management FileSet implementation to perform this (see
maven-clean-plugin) for example usage.

-- 
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