title: Maven webapp with maven-eclipse-plugin doesn't generate <dependent-module>
body: <p>I use the <code>eclipse:eclipse</code> goal to generate an Eclipse Project environment. The deployment works fine. The goal creates the var classpath entries for all needed dependencies.</p>
  
  <p>With <code>m2eclipse</code> there was the Maven Container which defines an export folder which was <code>WEB-INF/lib</code> for me. But i don't want to rely on <code>m2eclipse</code> so i don't use it anymore.</p>
  
  <p>
   
   </p>
  
  <p>the class path entries which are generated by <code>eclipse:eclipse</code> goal don't have such a export folder.</p>
  
  <p>While booting the servlet container with WTP it publishes all resources and classes except the libraries to the context.</p>
  
  <p>Whats missing to publish the needed libs, or isn't that possible without m2eclipse integration?</p>
  
  <p><strong>Enviroment</strong></p>
  
  <ul>
  <li>Eclipse 3.5 Java EE Galileo</li>
  <li>Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)</li>
  <li>Java version: 1.6.0_14</li>
  <li><strike>m2eclipse</strike></li>
  </ul>
  
  <p><strong>The maven-eclipse-plugin configuration</strong></p>
  
  <pre><code>    &lt;plugin&gt;
       &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
       &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
       &lt;version&gt;2.8&lt;/version&gt;
       &lt;configuration&gt;
        &lt;projectNameTemplate&gt;someproject-[artifactId]&lt;/projectNameTemplate&gt;
        &lt;useProjectReferences&gt;false&lt;/useProjectReferences&gt;
        &lt;downloadSources&gt;false&lt;/downloadSources&gt;
        &lt;downloadJavadocs&gt;false&lt;/downloadJavadocs&gt;
  
        &lt;wtpmanifest&gt;true&lt;/wtpmanifest&gt;
        &lt;wtpversion&gt;2.0&lt;/wtpversion&gt;
        &lt;wtpapplicationxml&gt;true&lt;/wtpapplicationxml&gt;
        &lt;wtpContextName&gt;someproject-[artifactId]&lt;/wtpContextName&gt;
  
        &lt;additionalProjectFacets&gt;
          &lt;jst.web&gt;2.3&lt;/jst.web&gt;
        &lt;/additionalProjectFacets&gt;
       &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>The generated files</strong></p>
  
  <p>After executing the <code>eclipse:eclipse</code> goal, the dependent-module is not listed in my generated <code>.settings/org.eclipse.wst.common.component</code>, so on server booting i miss the depdencies.</p>
  
  <p>This is what i get:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project-modules id="moduleCoreId" project-version="1.5.0"&gt;
    &lt;wb-module deploy-name="someproject-core"&gt;
      &lt;wb-resource deploy-path="/" source-path="src/main/java"/&gt;
      &lt;wb-resource deploy-path="/" source-path="src/main/webapp"/&gt;
      &lt;wb-resource deploy-path="/" source-path="src/main/resources"/&gt;
    &lt;/wb-module&gt;
  &lt;/project-modules&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Update for upcoming readers</strong></p>
  
  <p>The problem here was the deviant <code>packaging</code>-type, if u use <code>maven-eclipse-plugin</code> please validate the use of <code>&lt;packaging&gt;war&lt;/packaging&gt;</code> or <code>ear</code>.</p>
  
  <p>The following problems are marked of the situations that i have two build-lifecycles in one maven pom.</p>