title: How do you import a maven EJB project in eclipse? (without m2e)
body: <p>I made an EJB project through Maven using "org.codehaus.mojo.archetypes:ejb-jee5" lastest version.</p>
  
  <p>Then I typed "mvn install" and "mvn eclipse:eclipse".</p>
  
  <p>Finally I imported it as a general java project in eclipse but the project is not being recognised as being EJB capable.</p>
  
  <p>What did I do wrong?</p>
  
  <p>Thanks</p>
  
  <h1>EDIT</h1>
  
  <p>tried this as suggested by an awnser, doesn't work</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;   
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;buildcommands&gt;
                      &lt;buildcommand&gt;org.eclipse.wst.common.project.facet.core.builder&lt;/buildcommand&gt;
                      &lt;buildcommand&gt;org.eclipse.jdt.core.javabuilder&lt;/buildcommand&gt;
                      &lt;buildcommand&gt;org.eclipse.wst.validation.validationbuilder&lt;/buildcommand&gt;
                  &lt;/buildcommands&gt;
                  &lt;additionalProjectnatures&gt;
                      &lt;projectnature&gt;org.eclipse.jem.workbench.JavaEMFNature&lt;/projectnature&gt;
                      &lt;projectnature&gt;org.eclipse.wst.common.modulecore.ModuleCoreNature&lt;/projectnature&gt;
                      &lt;projectnature&gt;eclipse.jdt.core.javanature&lt;/projectnature&gt;
                      &lt;projectnature&gt;org.eclipse.wst.common.project.facet.core.nature&lt;/projectnature&gt;
                  &lt;/additionalProjectnatures&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <h1>EDIT</h1>
  
  <p>Apparently adding those builder and natures to your .project is not enougth, an xml file describing wich facet is enabled must be generated too, in order to do that I should add the following code betwen the '' tags</p>
  
  <pre><code>&lt;additionalProjectFacets&gt;
      &lt;jst.java&gt;1.6&lt;/jst.java&gt;
      &lt;jst.ejb&gt;3.0&lt;/jst.ejb&gt;
  &lt;/additionalProjectFacets&gt;
  </code></pre>
  
  <p>However those 4 line generate a 'Build failure'</p>