You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2018/04/14 09:32:00 UTC

[jira] [Closed] (MRESOURCES-246) set filtering = true will make some excel file to be broken

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

Robert Scholte closed MRESOURCES-246.
-------------------------------------
    Resolution: Invalid
      Assignee: Robert Scholte

If you say to Maven filter all resources, it'll filter all resources. This means all ${...} or @...@ will be replaced, no matter the filetype, i.e. text or binary. And in rare cases this might lead to corrupt files. Maven can't maintain a whitelist of textfile extensions or blacklist of binary file extensions, both lists would stay incomplete.

The solution: specify that you don't want this file to be filtered, See https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html 

> set filtering = true will make some excel file to be broken
> -----------------------------------------------------------
>
>                 Key: MRESOURCES-246
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-246
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 3.0.2
>            Reporter: george
>            Assignee: Robert Scholte
>            Priority: Major
>         Attachments: QQ截图20180414171050.png, QQ截图20180414171103.png, export.xlsx
>
>
> while I set filtering = true, maven-resources-plugin will copy my excel file to the directory, but the file is broken, can be opened,
> after I set filtering = false, or comment this line of settings, the file is ok,
> I use maven-kotlin-plugin



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)