title: class import not resolved on external jars installed in maven local repository
body: <p>I am using maven 3.2.5. I have one external jars which I need to use in my maven project which is not available in maven repository.</p>
  
  <p>I installed those jars by using following command:</p>
  
  <p>1) <code>mvn install:install-file -Dfile=p-unit-0.15.319.jar -DgroupId=org.punit -DartifactId=p-unit -Dversion=0.15.319 -Dpackaging=jar</code></p>
  
  <p>2) After this command, I saw in my M2 repository, jar &amp; pom was created
  .m2\repository\org\punit\p-unit\0.15.319\p-unit-0.15.319.jar
  .m2\repository\org\punit\p-unit\0.15.319\p-unit-0.15.319.pom</p>
  
  <p>created pom content:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;org.punit&lt;/groupId&gt;
    &lt;artifactId&gt;p-unit&lt;/artifactId&gt;
    &lt;version&gt;0.15.319&lt;/version&gt;
    &lt;description&gt;POM was created from install:install-file&lt;/description&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>3) Updated the pom file </p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.punit&lt;/groupId&gt;
    &lt;artifactId&gt;p-unit&lt;/artifactId&gt;
    &lt;version&gt;0.15.319&lt;/version&gt;   
    &lt;scope&gt;provided&lt;/scope&gt;                                         
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Issue:  When I tried to use class of this jar,</p>
  
  <pre><code> import org.punit.runner.*;
   getting error: import org.punit.runner can't be resolved.
  </code></pre>
  
  <p>I tried many combination to define the dependency but not able to use the classes.</p>
  
  <p>How can I resolve it??</p>