Behrang Saeedzadeh created MSHADE-290:
-----------------------------------------

             Summary: Maven Shade Plugin does not preserve the unix file 
permission of resources
                 Key: MSHADE-290
                 URL: https://issues.apache.org/jira/browse/MSHADE-290
             Project: Maven Shade Plugin
          Issue Type: Bug
    Affects Versions: 3.1.1
         Environment: * Linux 4.15.0-23-generic GNU/Linux (Ubuntu 18.04)
* OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.18.04.1-b11)
* Apache Maven 3.5.2
            Reporter: Behrang Saeedzadeh
         Attachments: bug-report.zip

A sample project to reproduce this is attached.

Here are the steps to reproduce:
 # Extract the archive and CD into the project directory
 # run {{mvn clean package}}
 # {{cd target}}
 # Run {{unzip original-maven-shade-plugin-file-permissions-1.0-SNAPSHOT.jar -d 
original}}
 # Run {{unzip maven-shade-plugin-file-permissions-1.0-SNAPSHOT.jar -d shaded}}

If you check the permission of the {{script.sh}} file in the {{original}} 
folder, it is 755:
{code:java}
$ ls -alh original/script.sh 13:54:34
-rwxrwxr-x 1 24 Jun 17 13:52 original/script.sh*{code}
However the permissions are changed in the files extracted in the {{shaded}} 
directory:
{code:java}
$ ls -alh shaded/script.sh 13:54:37
-rw-rw-r-- 1 24 Jun 17 13:52 shaded/script.sh{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to