title: Start tomcat7:run maven plugin within eclipse and debug
body: <p>I want to debug a webapp in eclipse. I get to the point where tomcat and the webapp are ran inside of eclipse in debug mode, but then breakpoints in the webapp code have no effect.</p>
  
  <p><strong>Details</strong><br>
  The webapp is a maven artifact and I use the m2e plugin in eclipse to bridge between maven and eclipse.</p>
  
  <p>I've managed to start the tomcat server from within eclipse. The webapp is started in tomcat nicely, also in debug mode if I choose so:</p>
  
  <ul>
  <li>in eclipse, right-click project</li>
  <li>Run As > Maven build... (NOT "Maven build")</li>
  <li>a window opens. In the text field "Goals", enter "tomcat7:run"</li>
  <li>click Apply</li>
  <li>click Run</li>
  </ul>
  
  <p>The tomcat server starts up running and its stdlog is printed to a window within eclipse. I can also stop it conveniently and start it again in debug mode. So far, that's what I want and what I expect.</p>
  
  <p><strong>Problem</strong><br>
  I set a breakpoint in the code of my webapp and restart tomcat in debug mode from within eclipse. Now, the breakpoint isn't active: It doesn't have that little tickmark that active breakpoints have and I know the code is executed, but it doesn't stop at the breakpoint.</p>