title: how to reference native DLL from Maven repo?
body: <p>If a JAR is accompanied with a native DLL in Maven repo what do I need to put into my pom.xml to get that DLL into the packaging?</p>
  
  <p>To be more specific take for example <a href="http://search.maven.org/#artifactdetails%7Cnet.sf.jacob-project%7Cjacob%7C1.14.3%7Cjar" rel="noreferrer">Jacob</a> library. How do you make <code>jacob-1.14.3-x64.dll</code> go into the <code>WEB-INF/lib</code> folder after you run <code>mvn package</code>?</p>
  
  <p>In our local Nexus repository we've got these definitions for JAR and DLL:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;net.sf.jacob-project&lt;/groupId&gt;
    &lt;artifactId&gt;jacob&lt;/artifactId&gt;
    &lt;version&gt;1.16-M2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;net.sf.jacob-project&lt;/groupId&gt;
    &lt;artifactId&gt;jacob&lt;/artifactId&gt;
    &lt;version&gt;1.16-M2&lt;/version&gt;
    &lt;classifier&gt;x64&lt;/classifier&gt;
    &lt;type&gt;dll&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But putting the same dependencies to our project POM and running <code>mvn package</code> doesn't make DLL go to <code>WEB-INF/lib</code>, but JAR gets there fine.</p>
  
  <p>What are we doing wrong?</p>