You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2015/04/11 14:59:12 UTC

[jira] [Closed] (MWAR-250) Exclusion of files doesn't work as documented

     [ https://issues.apache.org/jira/browse/MWAR-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise closed MWAR-250.
------------------------------------
    Resolution: Not A Problem
      Assignee: Karl Heinz Marbaise

If you have further information or an example project which will reproduce the problem please don't hesitate to reopen the issue.

> Exclusion of files doesn't work as documented
> ---------------------------------------------
>
>                 Key: MWAR-250
>                 URL: https://issues.apache.org/jira/browse/MWAR-250
>             Project: Maven WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>         Environment: maven-war-plugin 2.1.1, Maven 2.2.1, Java 1.6.0_18, Windows XP
>            Reporter: David Laube
>            Assignee: Karl Heinz Marbaise
>
> I tried to exclude files and in accordance with the doc on 
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
> I used the following maven-war-configuration, yet it didn't work for me, the exclude definition is ignored:
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-war-plugin</artifactId>
>   <version>2.1.1</version>
>   <configuration>
>     <webResources>
>       <resource>
>         <directory>src/main/webapp/</directory>
>         <excludes>
>            <exclude>**/*.wsil</exclude>  
>            <exclude>WEB-INF/web.xml</exclude>  
>          </excludes> 
>       </resource>
>     </webResources> 
>   </configuration>
> </plugin>
> {code}
> This configuration didn't work either:
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-war-plugin</artifactId>
>   <version>2.1.1</version>
>   <configuration>
>     <warSourceExcludes>**/*.wsil, WEB-INF/web.xml</warSourceExcludes> 
>   </configuration>
> </plugin>
> {code}
> Finally, with this configuration the specified files were excluded:
> {code:xml}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-war-plugin</artifactId>
>   <version>2.1.1</version>
>   <configuration>
>     <excludes>**/*.wsil, WEB-INF/web.xml</excludes>
>   </configuration>
> </plugin>
> {code}
> That is, IMHO probably this is a bug, at least the documentation isn't in sync with the plugin behaviour.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)