title: Maven doesn't see dependencies which are JAR files in a subfolder
body: <p>I have a project where I use Maven as the build tool.</p>
  
  <p>In my <code>pom.xml</code> file I have these dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.my.group1&lt;/groupId&gt;
    &lt;artifactId&gt;MyArtifact1&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;com.my.group2&lt;/groupId&gt;
    &lt;artifactId&gt;MyArtifact2&lt;/artifactId&gt;
    &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;com.my.group3&lt;/groupId&gt;
    &lt;artifactId&gt;MyArtifact3&lt;/artifactId&gt;
    &lt;version&gt;1.3&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Within the folder where I have my <code>pom.xml</code>, I also have a subfolder, <code>\external</code>. In this subfolder, I have the above listed artifacts as jars: <code>MyArtifact1-1.0.jar</code>, <code>MyArtifact2-1.1.jar</code>, <code>MyArtifact3-1.3.jar</code>.</p>
  
  <p>The problem is that when I run <code>mvn install</code>, I get this:</p>
  
  <pre><code>[ERROR] Failed to execute goal on project my-project: Could not resolve dependencies for project com.my.group4:sample-project:jar:20161207.3: The following artifacts could not be resolved: com.my.group1:MyArtifact1:jar:1.0, com.my.group2:MyArtifact2:jar:1.1, com.my.group3:MyArtifact3:jar:1.3: Failure to find com.my.group1:MyArtifact1:jar:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
  </code></pre>
  
  <p>So far, I tied running this:</p>
  
  <pre><code>mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file  -Dfile=./external/MyArtifact1-1.0.jar -DgroupId=com.my.group1 -DartifactId=MyArtifact1 -Dversion=1.0 -Dpackaging=jar
  </code></pre>
  
  <p>I tried the above for all 3 packages, but still it looks like it didn't have any effect.</p>