title: How do I manually add a project to the build path of another project?
body: <p>I have a maven project which won't compile due to an unresolvable reference from another project's artifact.</p>
  
  <p>When I run eclipse:eclipse and open it up it shows an auto fix suggestion of "Add project 'project2' to build path of 'project1'". If I click this everything works. So project1 can clearly see my project2 reference, but doesn't quite use it as expected.</p>
  
  <p>However, once I delete all the files generated for eclipse the error resumes because whatever reference eclipse created has been removed. How can I get this project2 in the project1 build path manually. I already have it listed in the pom as below:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;group.id&lt;/groupId&gt;
      &lt;artifactId&gt;project2&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>