maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mat Schaffer (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MWAR-173) war:inplace overwrites main web.xml when using alternate maven.war.webxml if alternate is newer
Date Tue, 04 Nov 2008 20:26:51 GMT
war:inplace overwrites main web.xml when using alternate maven.war.webxml if alternate is newer
-----------------------------------------------------------------------------------------------

                 Key: MWAR-173
                 URL: http://jira.codehaus.org/browse/MWAR-173
             Project: Maven 2.x War Plugin
          Issue Type: Bug
    Affects Versions: 2.1-alpha-2
            Reporter: Mat Schaffer
         Attachments: main.zip

This appears to be present in trunk as well and seems to be happening in WarProjectPackagingTask.handleDeploymentDescriptors
since it is not aware that the project is using an alternate web.xml.

It may also be related to MWAR-95, but is a slightly different use case.

(from example zip)
1. touch src/main/webapp/WEB-INF/*web.xml  # synchronize times on both web.xml files
2. mvn war:inplace
3. cat src/main/webapp/WEB-INF/web.xml  # shows Main webXml
4. touch src/main/webapp/WEB-INF/alternate.web.xml # update time on alternate defined using
maven.war.webxml
5. mvn war:inplace
6. cat src/main/webapp/WEB-INF/web.xml # shows Alternate webXml

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