title: Howto re-use War resources between Wars with Maven War Plugin
body: <p>Under a Java EE enviroment, I have a web page built including several JSP files.
  Lets say one of the included JSP is <em>header.jsp</em>. Can be very similar to the one used by Stackoverflow, showing info about the user, links etc. This JSP is linked to a java controller to fetch user info, and is part of my WAR file including all the web application.</p>
  
  <p>To develop it I used Eclipse and to build and package it I use Maven.</p>
  
  <p>Now I need to build a new webApplication (so a new war) and I want to reuse the header.</p>
  
  <p>What I pretend is:</p>
  
  <ul>
  <li>not to duplicate code </li>
  <li>both wars use one version of the header code</li>
  </ul>
  
  <p>So the question is:</p>
  
  <p>There is way to avoid copy &amp; pasting both files (header.jsp &amp; controller.java) from old project to the new one?</p>