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

Directory permissions still not correct for dirs created by dependencySet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3
    • 2.4
    • dependencySet, permissions
    • None

    Description

      While 2.3 did fix some of the permission problems, it still seems to have issues creating proper permissions in zip files for directories created by dependencySet, even with directoryMode configured.

      I've setup a branch of nexus 'm-assembly-p-2.3-still-broke' which configures version 2.3 of the m-assembly-p:

      https://github.com/sonatype/nexus/tree/m-assembly-p-2.3-still-broke

      mvn clean install -Dtest=skip
      unzip -d target nexus/nexus-oss-webapp/target/nexus-oss-webapp-2.3-SNAPSHOT-bundle.zip
      find target/nexus-oss-webapp-2.3-SNAPSHOT -ls | grep rwxrwx
      

      Shows that the lib and nexus directories are 777:

      157453615        0 drwxrwxrwx   23 jason            staff                 782 Nov  2 16:42 target/nexus-oss-webapp-2.3-SNAPSHOT/lib
      157452852        0 drwxrwxrwx   12 jason            staff                 408 Nov  2 16:42 target/nexus-oss-webapp-2.3-SNAPSHOT/nexus
      

      Both of these directories are created by a dependencySet with directoryMode set to 0755.

      The last version of the m-assembly-p which actually functions correct for perms/assembly configuration is 2.2-beta-3.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jason@planet57.com Jason Dillon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: