title: Maven + Netbeans Debugging WAR Application
body: <p>We have 2 Maven applications, a war application which contains our jsps and presentation layer code, and a shared library which contains our business layer code. </p>
  
  <p>Before migrating to maven we had the shared library as a project reference of the WAR application. Whenever we built or debugged the WAR application in Netbeans, the shared library would get automatically compiled and built and any new changes were picked up automatically.</p>
  
  <p>With Maven, it looks like any time we make a change to the shared library we now need to build the shared library project BEFORE debugging. Is there any way to retain the efficiency of the old method?</p>
  
  <p>When we debug the WAR application is there any way to have Maven build the shared library dependency (local jar project) automatically whenever we debug?</p>