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

Maven assembly per-extension file permissions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I often have to write the following when using the Maven Assembly plug-in, in order to have file permissions correctly set for executable and non-executable files:

      <fileSet>
      <directory>src/main/assembly/resources</directory>
      <outputDirectory></outputDirectory>
      <excludes>
      <!-- Defined below, with x permissions, non-executables only here -->
      <exclude>*/.sh</exclude>
      </excludes>
      <fileMode>0644</fileMode>
      <directoryMode>0755</directoryMode>
      </fileSet>
      <fileSet>
      <directory>src/main/assembly/resources</directory>
      <outputDirectory></outputDirectory>
      <includes>
      <include>*/.sh</include>
      </includes>
      <fileMode>0755</fileMode>
      <directoryMode>0755</directoryMode>
      </fileSet>

      This is redundant and cumbersome, I wonder if there is a simpler way to do the same, e.g., by specifying maps of file pattern => fileMode. It doesn't seem that anything like that is available, so I'm filing this as a new feature proposal.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zakmck Marco Brandizi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: