title: Downloading LWJGL natives with Ivy
body: <p>I'm trying to set up an Ant + Ivy build for a personal project. Everything was making sense, and working nicely, until I got to LWJGL. Everything from LWJGL is resolved, except the natives.</p>
  
  <p>The <a href="https://github.com/LWJGL/lwjgl3/blob/master/README.md" rel="nofollow">Readme.md</a> on their website makes it seem that it is possible to get these through Ivy:</p>
  
  <blockquote>
    <p>LWJGL 3 can be used with Maven/Gradle/Ivy, with the following
    dependencies:</p>
    
    <ul>
    <li>org.lwjgl:lwjgl:${version}</li>
    <li>org.lwjgl:lwjgl-platform:${version}:natives-windows</li>
    <li>org.lwjgl:lwjgl-platform:${version}:natives-linux</li>
    <li>org.lwjgl:lwjgl-platform:${version}:natives-osx</li>
    </ul>
  </blockquote>
  
  <p>The files I want are definitely on the <a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.lwjgl%22" rel="nofollow">maven central repository</a>, so there must be a way of getting them through Ivy. I have set up my ivy.xml file like so:</p>
  
  <pre><code>&lt;ivy-module version="1.0" xmlns:extra="http://ant.apache.org/ivy/extra"&gt;
      &lt;info organisation="foo" module="bar"/&gt;
      &lt;publications&gt;
          &lt;artifact name="baz" type="jar"/&gt;
      &lt;/publications&gt;
      &lt;dependencies&gt;
          &lt;dependency org="org.lwjgl" name="lwjgl" rev="3.0.0a"/&gt;
          &lt;dependency org="org.lwjgl" name="lwjgl-platform" rev="3.0.0a" extra:classifier="natives-linux"/&gt;
          &lt;dependency org="org.lwjgl" name="lwjgl-platform" rev="3.0.0a" extra:classifier="natives-osx"/&gt;
          &lt;dependency org="org.lwjgl" name="lwjgl-platform" rev="3.0.0a" extra:classifier="natives-windows"/&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>And my resolve task in ant:</p>
  
  <pre><code>&lt;target name="resolve" description="Retrive dependencies with Ivy"&gt;
      &lt;ivy:retrieve/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>For some reason, this downloads all the artifacts from "org.lwjgl:lwjgl:3.0.0a" (jar, javadoc, and sources), but does not download any of the natives from "org.lwjgl:lwjgl-platform:3.0.0a". I spent a long time on Google, and finally managed to find the "extra:classifier" syntax in someone else's ivy.xml file on Github, but to no avail (I got my hopes up too early). There must be something I'm missing, so I hope someone on SO can help.</p>