title: Dependant jar doesn't deploy to tomcat where project with this jar is open in workspace
body: <p>Strange problem, I've got two projects in workspace:</p>
  
  <p>ProjectA</p>
  
  <p>ProjectB</p>
  
  <p>in pom.xml in projectA i've added:</p>
  
  <p><code>&lt;dependency&gt;
          &lt;groupId&gt;groupid&lt;/groupId&gt;
          &lt;artifactId&gt;projectB&lt;/artifactId&gt;
          &lt;version&gt;version&lt;/version&gt;
      &lt;/dependency&gt;</code> </p>
  
  <p>And when I build application and deploy to tomcat, there is in logs : " NoClassDefFoundError"
  I've noticed, if I close projectB then immediately app in tomcat works properly. If I open project then app is crushing.</p>