You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marc Rohlfs (JIRA)" <ji...@codehaus.org> on 2010/12/17 16:09:58 UTC

[jira] Commented: (MASSEMBLY-528) FileSet does not support filtering (again)

    [ http://jira.codehaus.org/browse/MASSEMBLY-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248898#action_248898 ] 

Marc Rohlfs commented on MASSEMBLY-528:
---------------------------------------

As I already mentioned, the filters are taken from the project if there's at least one filter defined in the plugin configuration. This also works if the plugin configuration contains an empty filter node. This means that the workaround can be introduced globally in the plugin management section (of the/a parent POM):
{code:xml}
<pluginManagement>
  <plugins>
    <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <version>2.2</version>
      <configuration>
        <filters>
          <filter></filter>
        </filters>
      </configuration>
    </plugin>
  </plugins>
</pluginManagement>
{code}

There's also a workaround for the filtering problem that occurs when the file to be filtered contains an @ sign: Just care that the file contains an even number of @ signs. This might sound a little crazy, but it seems to work - guess it's because old style filter tokens started and ended with an @ sign.

> FileSet does not support filtering (again)
> ------------------------------------------
>
>                 Key: MASSEMBLY-528
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-528
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Maik Richey
>            Priority: Critical
>         Attachments: MASSEMBLY-528_sample.zip
>
>
> After switching to version 2.2 of the Assembly Plugin filtering for FileSets does not work again as in versions prior to 2.2-beta-3.
> Can anybody confirm this issue?

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