Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-325

maven-filtering 1.2 throws MavenFilteringException: Mark invalid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: maven-filtering-1.2
    • Fix Version/s: maven-filtering-1.3
    • Component/s: maven-filtering
    • Labels:
      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

        1. payload
          0.0 kB
          Mikolaj Izdebski
        2. 0001-Add-unit-test-for-MSHARED-325.patch
          4 kB
          Mikolaj Izdebski
        3. MSHARED-325-tests.patch
          4 kB
          Robert Scholte

          Issue Links

            Activity

              People

              • Assignee:
                krosenvold Kristian Rosenvold
                Reporter:
                mizdebsk Mikolaj Izdebski
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: