title: How to assemble multimodule maven project into one WAR?
body: <p>Similar question <a href="https://stackoverflow.com/q/2524058/590657">here</a>.</p>
  
  <p>I would like to get ONE resulting WAR to be deployed from 3 different maven modules. The war modules are absolutely non-conflicting :</p>
  
  <ul>
  <li><p><strong>First one that has Java classes and some WEB-INF/artifacts</strong></p></li>
  <li><p><strong>Second one are just API - interfaces - that must be either already present in container or part of the resulting war (that's what I want)</strong></p></li>
  <li><p><strong>Third one with Implementation classes,  WEB-INF/artifacts ( spring infrastructure, web.xml, etc)</strong></p></li>
  </ul>
  
  <p>First one depends on interfaces and implementation. Third one depends on the interfaces.</p>
  
  <p>I have a total mess in possible options. </p>
  
  <p>Do I use Overlays for this ? </p>
  
  <p>Or do I use assembly plugin to be able to integrate Classes from the second one ? </p>
  
  <p>Do I use <a href="http://cargo.codehaus.org/" rel="nofollow noreferrer">Cargo plugin</a> ?</p>
  
  <p>Or is it accomplished by maven-war-plugin if I specify webResources from different module ? Because <a href="http://agile-reflections.opnworks.com/2011/04/maven-trick-to-split-liferay-services.html" rel="nofollow noreferrer">this dude</a> is doing almost the same as I do, but with 2 war modules only, and he doesn't use assembly plugin, nor Overlays....</p>
  
  <p>Please tell me, how is this done properly ?</p>