Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-462

Assembly contains temporary files ending in *.formatted.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2-beta-5
    • 2.2
    • None
    • None
    • Patch

    Description

      The fix for MASSEMBLY-385 introduced a regression in class org.apache.maven.plugin.assembly.format.FileFormatter (<http://svn.apache.org/viewvc?view=revision&revision=806277>) leading to file set definitions without any includes to produce temporary files in the final assembly ending in *.formatted.

      Example file sets to reproduce:

      <fileSet>
        <directory>target/appassembler/bin</directory>
        <fileMode>0555</fileMode>
        <directoryMode>0755</directoryMode>
        <outputDirectory>/bin</outputDirectory>
        <excludes>
          <exclude>*.bat</exclude>
        </excludes>
        <lineEnding>unix</lineEnding>
      </fileSet>
      
      <fileSet>
          <directory>src/main/assembly/etc</directory>
          <fileMode>0444</fileMode>
          <directoryMode>0755</directoryMode>
          <outputDirectory>/etc</outputDirectory>
          <lineEnding>dos</lineEnding>
      </fileSet>
      

      The attached patch adds the "*/.formatted" pattern to the default excludes.

      Attachments

        1. MASSEMBLY-462.patch
          0.6 kB
        2. MASSEMBLY-462-with-IT.patch
          5 kB
          Georges-Etienne Legendre

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              schulte77 Christian Schulte
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: