[ https://issues.apache.org/jira/browse/MRESOURCES-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16438287#comment-16438287 ]
Karl Heinz Marbaise commented on MRESOURCES-246: ------------------------------------------------ Maybe I misunderstand you but this is exactly what I expected. Filtering should only being set for files which can be handled. for example excel files and any kind of binary file should simply not being filtered... There are two solutions. The simplest thing is to define two directories: {{src/main/filtered-resources}} which obviously is used to put in files which will be filtered and a second directory {{src/main/resources}} which is not filtered. This is the way I do most of the time..on the other hand you can [configure some extensions to be ignored|https://maven.apache.org/plugins/maven-resources-plugin/examples/binaries-filtering.html] like this: {code:xml} <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> <configuration> ... <nonFilteredFileExtensions> <nonFilteredFileExtension>xlsx</nonFilteredFileExtension> <nonFilteredFileExtension>...</nonFilteredFileExtension> </nonFilteredFileExtensions> ... </configuration> </plugin> </plugins> ... </build> {code} > 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)