You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kohsuke Kawaguchi (JIRA)" <ji...@codehaus.org> on 2010/01/12 04:07:55 UTC

[jira] Created: (MWAR-216) Changes in dependencies aren't reflected in target/modulename/WEB-INF/lib

Changes in dependencies aren't reflected in target/modulename/WEB-INF/lib
-------------------------------------------------------------------------

                 Key: MWAR-216
                 URL: http://jira.codehaus.org/browse/MWAR-216
             Project: Maven 2.x WAR Plugin
          Issue Type: Bug
    Affects Versions: 2.1-alpha-2
            Reporter: Kohsuke Kawaguchi


The war plugin copies module dependencies into target/modulename/WEB-INF/lib, but it doesn't remove files that don't belong there.

So if I change POM to remove a dependency or change a version, you still see the old jar in WEB-INF/lib until you do a clean rebuild.

As this often results in a rather painful bug (where you get two different versions of the same library in WEB-INF/lib, which makes the program break in some systems but not others), it'd be highly desirable if the plugin is smart enough to delete files that shouldn't be there.

-- 
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-216) Changes in dependencies aren't reflected in target/modulename/WEB-INF/lib

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206574#action_206574 ] 

Stephane Nicoll commented on MWAR-216:
--------------------------------------

Agreed. Once the metadata about libraries will be fixed, this is trivial to implement.

> Changes in dependencies aren't reflected in target/modulename/WEB-INF/lib
> -------------------------------------------------------------------------
>
>                 Key: MWAR-216
>                 URL: http://jira.codehaus.org/browse/MWAR-216
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-2
>            Reporter: Kohsuke Kawaguchi
>
> The war plugin copies module dependencies into target/modulename/WEB-INF/lib, but it doesn't remove files that don't belong there.
> So if I change POM to remove a dependency or change a version, you still see the old jar in WEB-INF/lib until you do a clean rebuild.
> As this often results in a rather painful bug (where you get two different versions of the same library in WEB-INF/lib, which makes the program break in some systems but not others), it'd be highly desirable if the plugin is smart enough to delete files that shouldn't be there.

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