[ 
https://issues.apache.org/jira/browse/MRESOURCES-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230726#comment-15230726
 ] 

Martin d'Anjou commented on MRESOURCES-132:
-------------------------------------------

I have isolated the problem and can reproduce it easily. I use Maven 3.0.5, and 
Java 8. The steps to reproduce are:
{noformat}
git clone https://github.com/martinda/maven-resource-permission-bug-132
cd maven-resource-permission-bug-132
mvn test
{noformat}
The test fails to execute the {{runme}} script. The permissions were not copied 
by maven, resulting in this error:
{noformat}
java.io.IOException: Cannot run program 
"/home/martin/tmp/maven-resource-permission-bug-132/target/test-classes/runme": 
error=13, Permission denied
{noformat}
If I force the correct permissions by hand, the test passes:
{noformat}
chmod +x target/test-classes/runme
mvn test
{noformat}
I do not seem to have permissions to reopen the bug, could you do that for me 
please? Thanks.

> Copying of files with permissions broken
> ----------------------------------------
>
>                 Key: MRESOURCES-132
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-132
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: copy
>    Affects Versions: 2.4.3
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
> Java version: 1.6.0_19
> Java home: /java/jdk1.6.0_19/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux" version: "2.6.28.5" arch: "i386" Family: "unix"
>            Reporter: Martin Todorov
>            Assignee: Karl Heinz Marbaise
>
> Files with permissions are not copied with the permissions as illustrated 
> below:
> {noformat}
> root@carlspring:/java/opensource/build-force/zipper-plugin# ls -al `find . 
> -name *perm*`
> -rwxr--r-- 1 root root   8 2010-12-09 20:48 
> ./src/test/resources/zip/file.with.permission.sh*
> -rw-r--r-- 1 root root   8 2010-12-09 22:56 
> ./target/test-classes/zip/file.with.permission.sh
> {noformat}
> Notice the 'x' permission missing from the copied file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to