title: Best way to add local dependency to Maven project
body: <p>There are a lot of questions about this, but the answers seem to contradict each other. So I wanted to ask it for my version of Maven (3.0.4).</p>
  
  <p>I have a JAR file that's not part of any maven repository. It's a local dependency. I understand there are two ways to add it to my Maven project.</p>
  
  <ol>
  <li>Add it as a dependency and specify the file path in the <code>&lt;systemPath&gt;</code> property. (No other work needed.)</li>
  <li>Create a local repository <code>&lt;my-project&gt;/repo</code> and install the JAR in this repository. Then, add the new repository in my pom.xml file and add the new dependency.</li>
  </ol>
  
  <p>I'm curious which way is better practice? I've heard some negative things about the <code>&lt;systemPath&gt;</code> property, although that way looks faster.</p>