title: Tomcat throws ClassNotFound exceptions for classes in other open eclipse projects
body: <p>I have an eclipse project structure that looks something like this:</p>
  
  <pre><code>eclipse
      project a
      project b
  </code></pre>
  
  <p>All of these projects are Maven projects. Project B is an Eclipse WTP project and contains Project A as a dependency. I'm using the m2eclipse plugin.</p>
  
  <p>When I deploy Project B to Tomcat (all from within Eclipse) it always throws errors saying that it can't find classes from Project A. The only way I can resolve this is to <strong>close</strong> Project A in Eclipse and do a <em>mvn install</em> command, so at this point Project A is treated like any other dependency.</p>
  
  <p>I would like to not have to keep reopening and then closing Project A every time I make changes to it (which is pretty frequently at this stage). </p>
  
  <p>I have tried adding Project A to Project B's Build Path, however that doesn't seem to do the trick. Again, it only works if I close the project in eclipse so it's treated like a normal maven dependency. </p>
  
  <p>FYI I'm using the Helios version of Eclipse. Project B is a Spring project, so naturally Tomcat falls over when it imports all the beans etc.</p>
  
  <p>Does anyone have any suggestions? Thanks a lot.</p>