title: Include local jar file in maven project - not finding file
body: <p>So I'm trying to include two local jar files into a Maven project I have and failing to do so. I've tried working through the solutions in these threads: <a href="https://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-in-maven-project">1</a> <a href="https://stackoverflow.com/questions/3765903/how-to-include-local-jar-files-in-maven-project">2</a> but it still isn't really working. Here are the key pieces of my pom.xml file: </p>
  
  <pre><code>    &lt;repository&gt;
          &lt;id&gt;local-maven-repo&lt;/id&gt;
          &lt;url&gt;file://${basedir}/resources&lt;/url&gt;
      &lt;/repository&gt;
  </code></pre>
  
  <p>and then dependencies:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;edu.mlab.jar1&lt;/groupId&gt;
          &lt;artifactId&gt;jar1_local&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;edu.mlab.jar2&lt;/groupId&gt;
          &lt;artifactId&gt;jar2_local&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Both jar files include package declarations at <code>edu.mlab.jar1</code> and <code>edu.mlab.jar2</code> respectively, so that's where I want them. The jar files are in the resources folder, and that's right under the base directory. </p>
  
  <p>That's the setup. Now, when I try <code>mvn package</code> (after <code>mvn clean</code>) I get the following error </p>
  
  <p><code>[ERROR] Failed to execute goal on project PROJECT: Could not resolve dependencies for project edu.mlab.project:PROJECT:war:1.0-SNAPSHOT: The following artifacts could not be resolved: edu.mlab.jar1:jar1_local:jar:1.0, edu.mlab.jar2:jar2_local:jar:1.0: Failure to find edu.mlab.jar1:jar1_local:jar:1.0 in file:///Users/mlab/Desktop/2016/project_web/resources was cached in the local repository, resolution will not be reattempted until the update interval of local-maven-repo has elapsed or updates are forced -&gt; [Help 1]</code></p>
  
  <p>I'm not really sure what's going wrong seeing as my jar1 and jar2 are exactly in the resources folder. Also, I've tried the approach of importing them with the system scope, but that won't work for my purposes as I want them included in the war artifact. </p>
  
  <p>Thanks so much!</p>