title: Wrong library path when executing from Maven shaded .jar
body: <p>Though my application works fine from Eclipse, when using the Maven shaded plugin and 'run'ing the JAR I get an exception illustrating a failure to find a needed JOGL binary lib in the current working directory, rightfully because it is not in the current working directory, but in the root of the JAR itself.</p>
  
  <p><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /path/to/working/dir/libgluegen-rt.so</code></p>
  
  <p>I have confirmed that the file is present at the JAR's root as expected.</p>
  
  <p>My POM's plugin invocation:</p>
  
  <pre><code>&lt;plugin&gt;
   &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
   &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
   &lt;version&gt;2.1&lt;/version&gt;
    &lt;executions&gt;
   &lt;execution&gt;
   &lt;phase&gt;package&lt;/phase&gt;
   &lt;goals&gt;
    &lt;goal&gt;shade&lt;/goal&gt;
   &lt;/goals&gt;
   &lt;configuration&gt;
    &lt;shadedArtifactAttached&gt;true&lt;/shadedArtifactAttached&gt;
   &lt;shadedClassifierName&gt;RunMe&lt;/shadedClassifierName&gt;
   &lt;transformers&gt;
     &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
     &lt;mainClass&gt;path.confirmed.to.work.RunMe&lt;/mainClass&gt;
    &lt;/transformer&gt;
  &lt;/transformers&gt;
   &lt;/configuration&gt;
   &lt;/execution&gt;
  &lt;/executions&gt;
   &lt;/plugin&gt;
  </code></pre>
  
  <p>Manifest of my JAR:</p>
  
  <pre><code>Manifest-Version: 1.0
  Build-Jdk: 1.6.0_30
  Built-By: me
  Created-By: Apache Maven
  Main-Class: path.confirmed.to.work.RunMe
  Archiver-Version: Plexus Archiver
  </code></pre>
  
  <p>Ideas? Suggestions?</p>
  
  <p>UPDATE: Looks like the shaded plugin confuses JOGL's native lib unpacking. It is adding "linux-amd64 to the end of my jar's name, thinking this is the JOGL-only library jar!</p>
  
  <pre><code>Catched FileNotFoundException: /path/to/my/git/project/target/0.0.1-SNAPSHOT-RunMe-natives-linux-amd64.jar (No such file or directory), while TempJarCache.bootstrapNativeLib() of jar:file:/path/to/my/git/project/terminal-recall/target/trcl-0.0.1-SNAPSHOT-RunMe-natives-linux-amd64.jar!/ (file:/path/to/my/git/project/target/ + trcl-0.0.1-SNAPSHOT-RunMe-natives-linux-amd64.jar)
  </code></pre>