title: Copy a file during maven build phase
body: <p>My situation is:</p>
  
  <ul>
  <li>I have a Maven project, I have my java classes in <strong>/app/src/main/java</strong>, my resources in <strong>/app/src/main/resources</strong> and my webapp files in <strong>/app/src/main/webapp</strong></li>
  <li>I have a javascript file in <strong>/common/script.js</strong></li>
  </ul>
  
  <p>Now what I want is to include (copy) the javascript file to the war file during the build phase of maven. To be precise, I want the <strong>script.js</strong> to land in <strong>/js/</strong> directory of the war archive, just as it was placed in <strong>/app/src/main/webapp/js</strong> before starting the build.</p>
  
  <p>I need this to share one version of resource files among many web-apps.</p>
  
  <p>Kind regards,
  Q.</p>