title: mvn package cannot find jars installed in local repository
body: <p>I have a project which has dependencies on two of my other projects.  I have used <code>mvn package</code> to create jar files of the two projects and then got them installed into my local repository successfully.  They are installed in the <code>localrepository/com</code> folder of the local repository.  </p>
  
  <p>In my third project I have added the dependencies of the two projects in the Pom.xml.  There are no errors running the project on <code>eclipse</code>.  However when I run the command <code>mvn package</code> for this project on command-line, it throws error that it </p>
  
  <blockquote>
    <p>cannot resolve the dependencies for my two projects from the central
    repository</p>
  </blockquote>
  
  <p>.  I then run the <code>mvn -o package</code> command to run <code>mvn</code> offline, however I again get error that </p>
  
  <blockquote>
    <p>mvn is being run offline and that the dependencies for my two projects
    have not been downloaded from the central repository before.</p>
  </blockquote>
  
  <p>Any ideas will be highly appreciated.</p>
  
  <p>This is the Pom.xml
  http://maven.apache.org/xsd/maven-4.0.0.xsd">
      4.0.0</p>
  
  <pre><code>&lt;groupId&gt;com.abc&lt;/groupId&gt;
  &lt;artifactId&gt;Test&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;name&gt;Test&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;3.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.MyBundle&lt;/groupId&gt;
          &lt;artifactId&gt;MyBundle&lt;/artifactId&gt;
          &lt;version&gt;0.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>