[ 
https://jira.codehaus.org/browse/MWAR-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281986#comment-281986
 ] 

Vincent Massol commented on MWAR-81:
------------------------------------

Thanks Nicolas.

I had found a very bad workaround (but working):

{code}
          </webResources>
          <!-- - Make sure we exclude JCL and LOGJ4 since we want all logging 
to go through SLF4J
               - Exclude xwiki-platform-olcore because it's included in 
xwiki-platform-legacy-oldcore
               - Excluded to prevent conflict in the patched version of Rhino 
used by yuicompressor used for JSX.
                 See http://jira.xwiki.org/jira/browse/XWIKI-6151 for more 
details.

               Note: We use ?????? because we need to exclude log4j-1.2.16 but 
keep log4j-over-slf4j-1.6.1.jar
                     See http://jira.codehaus.org/browse/MWAR-81
          -->
          <packagingExcludes>
            
WEB-INF/lib/xwiki-platform-oldcore-*.jar,WEB-INF/lib/batik-js-*.jar,WEB-INF/lib/commons-logging-*.jar,WEB-INF/lib/log4j-??????.jar
          </packagingExcludes>
{code}

> Request enhancement to pattern matching for 
> warSourceIncludes/warSourceExcludes functionality (regular expressions?)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: MWAR-81
>                 URL: https://jira.codehaus.org/browse/MWAR-81
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Wish
>         Environment: n/a
>            Reporter: Bryan Loofbourrow
>            Priority: Minor
>         Attachments: maven-war-plugin-2.1.1-NM.patch
>
>
> The Maven War Plugin currently permits choosing what files will wind up in 
> the .war. It does this via two parameters, warSourceIncludes, and 
> warSourceExcludes.  The rule appears to be that the includes are computed, 
> and a list of matches made, then that list is run against the excludes, and 
> any matches taken out of the include list.
> The only wildcards that appear to be supported are *, **, and ?.
> That doesn't work well if you are packaging wars in ears, and therefore want 
> to exclude all jars from the war, except for one or two that have to be in 
> the war in order to run properly.  "Exclude all but foo.jar and bar.jar" just 
> doesn't translate well to "here's your simple include template, here's your 
> simple exclude template" representation, at least with current wildcards.
> So this is a wish specifically for something to address the "exclude all but 
> x, y, and z" need for war source includes/excludes, and a suggestion that it 
> might be best to deprecate the warSourceIncludes/warSourceExcludes approach 
> in favor of a single parameter that supports regular expressions instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to