You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2010/07/20 13:09:32 UTC

[jira] Created: (MWAR-228) [regression] war:war does not exclude jar dependencies from WEB-INF/lib

[regression] war:war does not exclude jar dependencies from WEB-INF/lib
-----------------------------------------------------------------------

                 Key: MWAR-228
                 URL: http://jira.codehaus.org/browse/MWAR-228
             Project: Maven 2.x WAR Plugin
          Issue Type: Bug
    Affects Versions: 2.1-alpha-2
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.5.0_22
Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
            Reporter: Mark Hobson


{{warSourceExcludes=WEB-INF/lib/*.jar}} should exclude the project's dependencies from the war.

- {{war:war}} respects this in [2.0.1, 2.1-alpha-1] (broke in 2.0 due to MWAR-39)
- {{war:exploded}} has never respected this

I'll attach an IT that reproduces the problem with {{war:exploded}}.  I assume that if {{war:exploded}} excludes the jars then {{war:war}} will too?  If not, we'll need another IT for {{war:war}}.

-- 
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-228) [regression] war:war does not exclude jar dependencies from WEB-INF/lib

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

Mark Hobson closed MWAR-228.
----------------------------

    Resolution: Not A Bug

You're right, thanks!  Sorry for the noise, I didn't realise that the behaviour changed by design in 2.1-alpha-2.

{{packagingExcludes}} works for me.  I should have read:
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html



> [regression] war:war does not exclude jar dependencies from WEB-INF/lib
> -----------------------------------------------------------------------
>
>                 Key: MWAR-228
>                 URL: http://jira.codehaus.org/browse/MWAR-228
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Java version: 1.5.0_22
> Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
>            Reporter: Mark Hobson
>         Attachments: MWAR-228-it.zip
>
>
> {{warSourceExcludes=WEB-INF/lib/*.jar}} should exclude the project's dependencies from the war.
> - {{war:war}} respects this in [2.0.1, 2.1-alpha-1] (broke in 2.0 due to MWAR-39)
> - {{war:exploded}} has never respected this
> I'll attach an IT that reproduces the problem with {{war:exploded}}.  I assume that if {{war:exploded}} excludes the jars then {{war:war}} will too?  If not, we'll need another IT for {{war:war}}.

-- 
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] Updated: (MWAR-228) [regression] war:war does not exclude jar dependencies from WEB-INF/lib

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

Mark Hobson updated MWAR-228:
-----------------------------

    Attachment: MWAR-228-it.zip

Attached IT.

> [regression] war:war does not exclude jar dependencies from WEB-INF/lib
> -----------------------------------------------------------------------
>
>                 Key: MWAR-228
>                 URL: http://jira.codehaus.org/browse/MWAR-228
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Java version: 1.5.0_22
> Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
>            Reporter: Mark Hobson
>         Attachments: MWAR-228-it.zip
>
>
> {{warSourceExcludes=WEB-INF/lib/*.jar}} should exclude the project's dependencies from the war.
> - {{war:war}} respects this in [2.0.1, 2.1-alpha-1] (broke in 2.0 due to MWAR-39)
> - {{war:exploded}} has never respected this
> I'll attach an IT that reproduces the problem with {{war:exploded}}.  I assume that if {{war:exploded}} excludes the jars then {{war:war}} will too?  If not, we'll need another IT for {{war:war}}.

-- 
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-228) [regression] war:war does not exclude jar dependencies from WEB-INF/lib

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

Stephane Nicoll commented on MWAR-228:
--------------------------------------

See the doc:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#warSourceExcludes

{quote}
The comma separated list of tokens to exclude when copying content of the warSourceDirectory.
{quote}

According to your exclusion pattern, I doubt you have jar file(s) in src/main/webapp/WEB-INF/lib !!

You might want to use this:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#packagingExcludes

> [regression] war:war does not exclude jar dependencies from WEB-INF/lib
> -----------------------------------------------------------------------
>
>                 Key: MWAR-228
>                 URL: http://jira.codehaus.org/browse/MWAR-228
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Java version: 1.5.0_22
> Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
>            Reporter: Mark Hobson
>         Attachments: MWAR-228-it.zip
>
>
> {{warSourceExcludes=WEB-INF/lib/*.jar}} should exclude the project's dependencies from the war.
> - {{war:war}} respects this in [2.0.1, 2.1-alpha-1] (broke in 2.0 due to MWAR-39)
> - {{war:exploded}} has never respected this
> I'll attach an IT that reproduces the problem with {{war:exploded}}.  I assume that if {{war:exploded}} excludes the jars then {{war:war}} will too?  If not, we'll need another IT for {{war:war}}.

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