title: Maven: Including external JAR in POM
body: <p>I know questions like this have been asked and answered before, and have taken the time to read those threads, but somehow they won't help me. I have locally added own Java code to the <a href="http://www.dspace.org" rel="nofollow">DSpace</a> software, and my code depends on another library, so I'll have to include this library (JAR) into the <code>&lt;dependencies&gt;</code> section of the POM, right? This is what my entry looks like:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;de.mannheim.ids&lt;/groupId&gt;
          &lt;artifactId&gt;pid&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;systemPath&gt;/absolute/path/to/jar/pid-client-0.0.1-SNAPSHOT.jar&lt;/systemPath&gt;
          &lt;scope&gt;system&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>This does not help but results in a Compile Error - the relevant classes cannot be found. I have also tried <code>mvn install:install-file -Dfile...</code>, which tells me everything is fine with the jar (BUILD SUCCESS), but the subsequent <code>mvn package</code> fails with the usual error.</p>
  
  <p>What could I be doing wrong?</p>