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

Specified file modes are used for all the following fileSets

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2-beta-4
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      When a file set specifies a file mode to use, all the following file sets also use that file mode. For example:

        <fileSets>
          <!-- Copy shell scripts and set execute permissions -->
          <fileSet>
            <directory>${basedir}/src/main/resources</directory>
            <outputDirectory>/</outputDirectory>
            <includes>
              <include>**/*.sh</include>
            </includes>
            <fileMode>755</fileMode>
          </fileSet>
          <!-- Copy non shell scripts -->
          <fileSet>
            <directory>${basedir}/src/main/resources</directory>
            <outputDirectory>/</outputDirectory>
            <excludes>
              <exclude>**/*.sh</exclude>
            </excludes>
          </fileSet>
        </fileSets>
      

      Even non-sh files will be executable. If the order of the sets is reversed, only .sh files are executable.

        Attachments

          Activity

            People

            • Assignee:
              jdcasey John Dennis Casey
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: