title: How to assemble a multi module project in Maven
body: <p>I am trying to make a multi module project. I have one module for JAR containing models, controller and service classes, and another module for the WAR. I have managed to build the project and generated the outcome, but I am unsure about the structure of my folders.</p>
  
  <p>Currently I have made one Maven module in the same project.</p>
  
  <p>Folders are:</p>
  
  <pre><code>Parent
  Module1
  Module2
  </code></pre>
  
  <p>They are all on the same level, is that correct? Or should Module1 and Module2 be inside the Parent folder? And is it possible (or will it happen automagically) to have the produced target to appear in the parent folder instead of in each module? Or maybe there is no need for that.</p>
  
  <p>I am using IntelliJ 11 IDEA.</p>
  
  <p><a href="http://www.sonatype.com/books/mvnex-book/reference/multimodule-sect-intro.html" rel="nofollow">http://www.sonatype.com/books/mvnex-book/reference/multimodule-sect-intro.html</a></p>