title: Problem with Eclipse and a Maven multi-module project
body: <p>I have created a Maven project with the following structure:</p>
  
  <pre>
  + root-project
    pom.xml (pom)
    + sub-projectA (jar)
    + sub-projectB (jar)
  </pre>
  
  <p>I have done the following steps:</p>
  
  <ol>
  <li>mvn archetype:create –DgroupId=my.group.id –DartifactId=root-project</li>
  <li>mvn archetype:create –DgroupId=my.group.id –DartifactId=sub-projectA</li>
  <li>mvn archetype:create –DgroupId=my.group.id –DartifactId=sub-projectB</li>
  </ol>
  
  <p>So I have, obviously, in the top-level pom.xml the following elements:</p>
  
  <pre><code>  &lt;modules&gt;
      &lt;module&gt;sub-projectA&lt;/module&gt;
      &lt;module&gt;sub-projectB&lt;/module&gt;
    &lt;/modules&gt;
  </code></pre>
  
  <p>The last step was:</p>
  
  <pre><code>mvn eclipse:clean eclipse:eclipse
  </code></pre>
  
  <p>Now if I import the <strong>root-project</strong> in Eclipse, it seems to look at my projects as resources and not like java projects.</p>
  
  <p>However if I import each of child projects <strong>sub-projectA</strong> and <strong>sub-projectB</strong>, it looks them like java projects.</p>
  
  <p>This is a big problem for me because I have a deeper hierarchy. Any help would be appreciated! </p>