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

<fileset> not filtering resources, but <files> does filter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.2-beta-1
    • None
    • None
    • None
    • Windows XP Maven 2.0.5

    Description

      In my assembly descriptor, this does not filter my resources:

      <fileSet>
      <directory>${basedir}/src/main/resources/deploy</directory>
      <filtered>true</filtered>
      <useStrictFiltering>true</useStrictFiltering>
      <outputDirectory>/</outputDirectory>
      <includes>
      <include>*.sh</include>
      <include>*.bat</include>
      </includes>
      <fileMode>0544</fileMode>
      </fileSet>

      But this DOES filter the same resources just fine:

      <files>
      <file>
      <source>${basedir}/src/main/resources/deploy/deploy.sh.txt</source>
      <outputDirectory>deploy</outputDirectory>
      <destName>test.sh</destName>
      <filtered>true</filtered>
      <lineEnding>unix</lineEnding>
      <fileMode>0554</fileMode>
      </file>
      </files>

      I have tried 2.2-beta-1 and 2.1 of the plugin and it acts the same way.

      A workaround is to just specify each file individually, but I have dozens of files and the descriptor is going to get quite cluttered.

      Attachments

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              mickknutson Mick Knutson
              Votes:
              11 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: