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

restrict useStrictFiltering option to DependencySets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-5
    • 2.2
    • None
    • None
    • Maven 2.2.1, RHEL4

    Description

      NOTE: Currently there is no good way to support strict filtering of fileSets. This feature should be restricted to DependencySets.

      I'll clone this issue to express the interest in re-adding this as a new feature with support from the plexus-utils DirectoryScanner, which much support strict filtering first.

      ---------

      I'm trying to turn on useStrictFiltering in a fileSet in an assembly
      descriptor, but maven doesn't fail when the file does not exist. Here
      is an example of what the assembly descriptor looks like:

      <?xml version="1.0" encoding="UTF-8"?><assembly>
      <formats>
      <format>tar.gz</format>
      </formats>
      <fileSets>
      <fileSet>
      <useStrictFiltering>true</useStrictFiltering>
      <directory>src/main</directory>
      <includes>
      <include>nonexistant.txt*</include>
      </includes>
      </fileSet>
      </fileSets>
      </assembly>

      Running "mvn package" happily produces a tarball with no indication that anything is wrong.

      Attachments

        1. fail_strictfiltering.zip
          2 kB
          Eric Haszlakiewicz

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              erh Eric Haszlakiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: