title: Platform-Specific Maven Dependencies
body: <p><a href="http://first.wpi.edu/FRC/roborio/maven/release/edu/wpi/cscore/java/cscore/1.0.2/" rel="nofollow noreferrer" title="WPIlib Maven Repo">Here is the Maven Repository</a> that I'm trying to use. A snippet from my <code>pom.xml</code>:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;edu.wpi.cscore.java&lt;/groupId&gt;
    &lt;artifactId&gt;cscore&lt;/artifactId&gt;
    &lt;version&gt;1.0.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When run, it grabs the <code>cscore-1.0.2.pom</code> file just fine, but then it goes searching for <code>cscore-1.0.2.jar</code> which doesn't exist - if you look in the repo, each JAR is platform-specific, and is named accordingly (e.g. <code>cscore-1.0.2-linux.jar</code>). </p>
  
  <p>I've tried:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;edu.wpi.cscore.java&lt;/groupId&gt;
    &lt;artifactId&gt;cscore&lt;/artifactId&gt;
    &lt;version&gt;1.0.2&lt;/version&gt;
    &lt;type&gt;pom&lt;/type&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;edu.wpi.cscore.java&lt;/groupId&gt;
    &lt;artifactId&gt;cscore&lt;/artifactId&gt;
    &lt;version&gt;1.0.2-linux&lt;/version&gt;
    &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>It gets the <code>cscore-1.0.2.pom</code> fine but then it goes looking in the <code>1.0.2-linux/</code> directory for the JAR, which simply doesn't exist. Is there a way to tell Maven that the JAR file it is looking for will be named something else? Or is this simply not a valid Maven repository?</p>
  
  <p>Thanks!</p>