You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Behrang <be...@gmail.com> on 2018/06/16 14:43:53 UTC
Reproducing MRESOURCES-132
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.