You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mat Schaffer (JIRA)" <ji...@codehaus.org> on 2008/11/04 21:26:51 UTC

[jira] Created: (MWAR-173) war:inplace overwrites main web.xml when using alternate maven.war.webxml if alternate is newer

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

        

[jira] Closed: (MWAR-173) war:inplace overwrites main web.xml when using alternate maven.war.webxml if alternate is newer

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MWAR-173.
--------------------------------

    Resolution: Not A Bug

> 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

        

[jira] Commented: (MWAR-173) war:inplace overwrites main web.xml when using alternate maven.war.webxml if alternate is newer

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231763#action_231763 ] 

Dennis Lundberg commented on MWAR-173:
--------------------------------------

To me this is working as designed. war:inplace does what you are telling it to, in this case (points 4-6) you are telling it to copy alternate.web.xml "inplace" which means that it ends up in src/main/webapp/WEB-INF/web.xml.

> 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