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

Permissions on directories in a zipped archive incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-4
    • 2.4
    • permissions
    • None

    Description

      Using the following assembly plugin:

      <assembly>
          <id>target-packaged</id>
          <formats>
              <format>zip</format>
          </formats>
          <includeBaseDirectory>false</includeBaseDirectory>
          <moduleSets>
              <moduleSet>
                  <includes>
                      <include>*:core-env</include>
                  </includes>
                  <binaries>
                      <attachmentClassifier>env</attachmentClassifier>
                      <includeDependencies>false</includeDependencies>
                      <unpack>true</unpack>
                  </binaries>
              </moduleSet>
              <moduleSet>
                  <includes>
                      <include>*:data-bridge</include>
                  </includes>
                  <binaries>
                      <attachmentClassifier>target</attachmentClassifier>
                      <includeDependencies>false</includeDependencies>
                      <unpack>true</unpack>
                  </binaries>
              </moduleSet>
              <moduleSet>
                  <includes>
                      <include>*:web</include>
                  </includes>
                  <binaries>
                      <attachmentClassifier>web</attachmentClassifier>
                      <includeDependencies>false</includeDependencies>
                      <unpack>true</unpack>
                  </binaries>
              </moduleSet>
          </moduleSets>
      </assembly>
      

      When unzipping the result on a Linux host all the directory permissions have been set to 777.
      If I revert the plugin version to 2.2-beta-3 the issue goes away.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              james.kavanagh James Kavanagh
              Votes:
              14 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: