I noticed this bug has been closed and marked as cannot reproduce: https://issues.apache.org/jira/browse/MRESOURCES-132
Which is a bit odd, as it is very easy to produce. Here is a sample project to reproduce it using Docker: https://github.com/behrangsa/bugreport-mresources-132 After cloning it, if you run `docker build .` It can be seen that the original permissions on script.sh are 775: Step 8/9 : RUN *ls -alh src/main/resources/script.sh* ---> Running in c07cdcbe268a *-rwxrwxr-x* 1 root root 24 Jun 16 14:17 src/main/resources/script.sh But after the script.sh is copied to target/classes, the "x" and "w" bits are dropped from the file's group and other attributes: Step 9/9 : RUN *ls -alh target/classes/script.sh* ---> Running in 3708b2d6116a *-rw-r--r--* 1 root root 24 Jun 16 14:27 target/classes/script.sh This should help with reproducing (and reopening) the bug.