title: Maven shade plugin Packaging DLL
body: <p>I have to add to my project a JNI module.</p>
  
  <p>I install the module in Maven as two different artifact: the jar library:</p>
  
  <pre><code>mvn install:install-file -DgroupId=com.test -DartifactId=ssa -Dversion=1.0 -Dpackaging=jar -Dfile=ssa.jar
  </code></pre>
  
  <p>and the runtime library with the DLL</p>
  
  <pre><code>mvn install:install-file -DgroupId=com.sirio -Dpackaging=ddl -DartifactId=ssa-runtime -classifier=windows-x86 -Dversion=1.0 -Dfile=SSADll.dll
  </code></pre>
  
  <p>In my maven project I add these dependecies:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.test&lt;/groupId&gt;
          &lt;artifactId&gt;ssa&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.test&lt;/groupId&gt;
          &lt;artifactId&gt;ssa-runtime&lt;/artifactId&gt;
          &lt;classifier&gt;windows-${arch}&lt;/classifier&gt;
          &lt;type&gt;dll&lt;/type&gt;
          &lt;version&gt;1.0&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>My problem is when I run the shade plugin goal to create a jar with dependencies, I get error:</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.3:shade (default) on project ....: Error creating shaded jar: error in opening zip file sirio\ssa-runtime\1.0\ssa-runtime-1.0-windows-x86.dll 
  </code></pre>
  
  <p>How can I tell the shade plugin to do not unpack the dll?</p>