title: Create Parent Maven Project from Existing projects
body: <p>I have existing two maven projects, I want to combine them after build into one project.
  I have not created these projects module wise, the two projects are separate maven projects.
  Below is the POM xml code part from existing projects.</p>
  
  <p><strong>Project One</strong> pom.xml</p>
  
  <pre><code>&lt;groupId&gt;com.olex&lt;/groupId&gt;
  &lt;artifactId&gt;olex-reg&lt;/artifactId&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  </code></pre>
  
  <p><strong>Project Two</strong> pom.xml</p>
  
  <pre><code>&lt;groupId&gt;com.olex&lt;/groupId&gt;
  &lt;artifactId&gt;olex-qba&lt;/artifactId&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  </code></pre>
  
  <p><strong>Combine Project</strong> pom.xml</p>
  
  <pre><code>&lt;groupId&gt;com.olex&lt;/groupId&gt;
  &lt;artifactId&gt;olex-war&lt;/artifactId&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  </code></pre>
  
  <p>I want to combine these projects into one like <code>olex-war</code>, A complete project.
  After build I want all the code to be copied to this <code>olex-war</code> project.
  Please suggest / provide hint if anyone aware of such scenario.</p>
  
  <p>Thanks in advance.</p>