Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get maven to download the platform.jar from the JNA project
    primarykey
    data
    text
    <p>I have the following POM entry </p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;net.java.dev.jna&lt;/groupId&gt; &lt;artifactId&gt;jna&lt;/artifactId&gt; &lt;version&gt;3.3.0&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>When I build my project it downloads the following files:</p> <ul> <li>jna-3.3.0.jar </li> <li>jna-3.3.0.jar.sha1 </li> <li>jna-3.3.0.pom </li> <li>jna-3.3.0.jar.sha1</li> </ul> <p>If you visit the repository at <a href="http://download.java.net/maven/2/net/java/dev/jna/jna/3.3.0/">http://download.java.net/maven/2/net/java/dev/jna/jna/3.3.0/</a> you can see there are numerous other files. Why isn't Maven downloading those other files?</p> <p>If you open the jna-3.3.0.pom you see</p> <pre><code>&lt;plugins&gt; &lt;!-- fake out maven and install the binary artifact --&gt; &lt;plugin&gt; &lt;groupId&gt;org.jvnet.maven-antrun-extended-plugin&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-extended-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;!--&lt;ant dir="." target="dist" /&gt;--&gt; &lt;attachArtifact file="dist/jna.jar" /&gt; &lt;attachArtifact file="dist/platform.jar" classifier="platform" type="jar" /&gt; &lt;attachArtifact file="dist/src-mvn.zip" classifier="sources" type="jar"/&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; </code></pre> <p>I suspect the issue has something to do with the comment in the pom "fake out maven and install the binary artifact".</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload