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

<directoryMode> permissions are lost if <include> is present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • None

    Description

      Used next descriptor:

          <assembly>
              <id>test</id>
              <formats>
                      <format>zip</format>
              </formats>
               <includeBaseDirectory>false</includeBaseDirectory>
              <fileSets>
                      <fileSet>
                              <directory>bin</directory>
                              <outputDirectory>bin-include</outputDirectory>
                              <includes>
                                  <include>*</include>
                              </includes>
                              <directoryMode>700</directoryMode>
                              <fileMode>700</fileMode>
                      </fileSet>
                      <fileSet>
                              <directory>bin</directory>
                              <outputDirectory>bin-no-include</outputDirectory>
                              <directoryMode>700</directoryMode>
                              <fileMode>700</fileMode>
                      </fileSet>
              </fileSets>
      </assembly>
      

      For both <filesSets> same directoryMode is set, but for case where <include> pattern is present directory permissions are broken.
      Listing:

      $ zipinfo target/testpom-1.0.0.zip
      Archive:  target/testpom-1.0.0.zip
      Zip file size: 502 bytes, number of entries: 4
      drwxr-xr-x  2.0 unx        0 b- stor 17-Apr-19 17:48 bin-include/
      drwx------  2.0 unx        0 b- stor 17-Apr-19 15:48 bin-no-include/
      -rwx------  2.0 unx        0 bl defN 17-Apr-19 15:48 bin-include/testfile
      -rwx------  2.0 unx        0 bl defN 17-Apr-19 15:48 bin-no-include/testfile
      

      Attachments

        1. test.rar
          0.8 kB
          Anton

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anton.kabachkov Anton
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: