[ https://jira.codehaus.org/browse/MNG-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=297734#comment-297734 ]
Jeff Molsen commented on MNG-5204: ---------------------------------- Similarly, on SunOS (5.10 Generic_147441-09 i86pc i386 i86pc) I get the same error. However, I found a work around which might offer some insight to the issue, and possibly help with testing a solution. The following failed with the same error reported above: /bin/sh -c ls -1nlad /opt/bamboo/bamboo4.0/xml-data/build-dir/ABCWEB-ABCWEBDEV-PUBLISHJOB/abc-web/abc-web-ui/pom.xml The following (with a shorter path) worked fine: /bin/sh -c ls -1nlad /opt/bamboo/bamboo4.0/xml-data/build-dir/ABCWEB-ABCWEBDEV-JOB1/abc-web/abc-web-ui/pom.xml I'm using Maven through Bamboo which generates build directories based on build plan (and job) names. When I redefined my job name to be shorter, it worked fine. I figured this out because other builds I had for the same code that were being deployed to different hosts (and had different, and shorter, job names) were working fine. So, renaming the job to a name of similar length to the jobs that were working solved the issue. > Invalid shell bounce call command > --------------------------------- > > Key: MNG-5204 > URL: https://jira.codehaus.org/browse/MNG-5204 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 3.0.3 > Environment: Mac OS X Lion, Intellij IDEA 10.x version > Reporter: Alexey Korchevsky > Priority: Blocker > > I create simple hello world project, and run build it by maven. > Maven run command "jar:jar", and it use org.codehaus.plexus-io component. > This component throws exception: > {code} > Caused by: java.io.IOException: Failed to retrieve numeric file attributes > using: '/bin/sh -c ls -1nlad /Users/mitallast/Sites/test/pom.xml' > at > org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:281) > at > org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:223) > at > org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributes(PlexusIoResourceAttributeUtils.java:168) > at > org.codehaus.plexus.archiver.ArchiveEntry.createFileEntry(ArchiveEntry.java:157) > ... 32 more > {code} > Note, generated shell command is invalid: > {code}/bin/sh -c ls -1nlad /Users/mitallast/Sites/test/pom.xml{code} > Correct command like as > {code}/bin/sh -c "ls -1nlad /Users/mitallast/Sites/test/pom.xml"{code} > Shell option "-c" is short equivalent of "command". Value for this option is > a shell command string. Plexus component didn't escape and not add quotes to > generated "ls" command. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira