title: Maven assembly plugin: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR
body: <p>I am running parallels with Debian on my OSX 10.7.5 and I have linked a directory with Java sources from OSX to the virtual Debian machine (using Parallels tools, which mount directories to <code>/media/psf/</code>).</p>
  
  <p>Compilation works correctly, only problem I have is with Maven Assembly plugin: which complains:</p>
  
  <pre><code>Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR
  </code></pre>
  
  <p>I googled following issue: <a href="http://jira.codehaus.org/browse/MASSEMBLY-588" rel="noreferrer">http://jira.codehaus.org/browse/MASSEMBLY-588</a></p>
  
  <p>They suggest using <code>&lt;directory&gt;${baseDir}&lt;/directory&gt;</code> in <code>jarlib.xml</code>. With this modification, the code compiles, but when checking the contents with <code>jar tf file.jar</code>, it is completely missing all the compiled sources, only maven libraries are added.</p>
  
  <p>The file, which works correctly on local filesystem is:</p>
  
  <pre><code>&lt;assembly&gt;
    &lt;id&gt;jar-with-dependencies&lt;/id&gt;
    &lt;formats&gt;
      &lt;format&gt;jar&lt;/format&gt;
    &lt;/formats&gt;
    &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
    &lt;fileSets&gt;
      &lt;fileSet&gt;
        &lt;directory&gt;target/classes&lt;/directory&gt;
        &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
      &lt;/fileSet&gt;
    &lt;/fileSets&gt;
    &lt;dependencySets&gt;
      &lt;dependencySet&gt;
        &lt;outputDirectory&gt;/lib&lt;/outputDirectory&gt;
        &lt;unpack&gt;false&lt;/unpack&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependencySet&gt;
    &lt;/dependencySets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>Is there a way to overcome this issue?</p>
  
  <p>Edit:</p>
  
  <pre><code>Apache Maven 2.2.1 (rdebian-4)
  Java version: 1.6.0_26
  Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux" version: "2.6.32-5-amd64" arch: "amd64" Family: "unix"
  </code></pre>