Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-filtering-1.2
-
None
Description
maven-filtering 1.2 throws MavenFilteringException: Mark invalid on some resource files, which filtering is successfull with version 1.1.
An example payload is attached. I will attach a reproducer as a unit test too.
Caused by: org.apache.maven.shared.filtering.MavenFilteringException: Mark invalid at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:129) at org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:264) at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:301) ... 21 more Caused by: java.io.IOException: Mark invalid at java.io.BufferedReader.reset(BufferedReader.java:505) at org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read(MultiDelimiterInterpolatorFilterReaderLineEnding.java:416) at org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read(MultiDelimiterInterpolatorFilterReaderLineEnding.java:205) at java.io.Reader.read(Reader.java:140) at org.apache.maven.shared.utils.io.IOUtil.copy(IOUtil.java:181) at org.apache.maven.shared.utils.io.IOUtil.copy(IOUtil.java:168) at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1856) at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1804) at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:114) ... 23 more
Attachments
Attachments
Issue Links
- is depended upon by
-
MWAR-331 IOException: Mark invalid -- With version 2.5
- Closed
-
MRESOURCES-192 Upgrade maven-filtering to 1.3
- Closed