title: multi module maven project structure in eclipse
body: <p>I have two modules under a main project</p>
  
  <p>main <br>
   | <br>
   | <br>
    --module-a <br>
   | <br>
   | <br>
    --module-b</p>
  
  <p>I created it using eclipse->new ->Maven project, eclipse->new->maven module.</p>
  
  <p>The structure in the file system looks correct. But in eclipse, it shows module-a, module-b as two new projects in the package explorer.</p>
  
  <p>My main project looks like this. </p>
  
  <p><img src="https://i.stack.imgur.com/He5sQ.jpg" alt="enter image description here"></p>
  
  <p>I have seen few multi module projects where, the modules are present within the main project in package explorer. The main project had</p>
  
  <p>module-a/src/main/java  <br>
  module-a/src/test/java  <br>
  module-a/src/resources/java  <br>
  module-b/src/main/java  <br>
  module-b/src/test/java  <br>
  module-b/src/resources/java.  <br></p>
  
  <p>How do I convert my project to look like this ?</p>