title: How can I execute Maven goals from Eclipse without M2Eclipse?
body: <p>I am using the eclipse plugin for maven to generate eclipse projects from maven pom.xml files.</p>
  
  <pre><code>mvn -Dwtpversion=1.5 eclipse:eclipse
  </code></pre>
  
  <p>This works fine and, after some experimenting with several of the 400 different archetypes available, I settled on using the <em>webapp-javaee6</em> archetype, which was the only one which generated a set of dependencies that were both all available and which created a project that was useable by the WTP plugin.</p>
  
  <p>The problem now is that I would like to be able to invoke mvn goals from eclipse. The accepted way to do this I understand is to use the m2eclipse plugin, which I have installed. </p>
  
  <p>However, after playing around a bit and getting nowhere I discovered this comment in my <code>.project</code> file:</p>
  
  <pre><code>&lt;comment&gt;NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.&lt;/comment&gt;
  </code></pre>
  
  <p>Further searching (see <a href="http://groups.google.com/group/scala-ide-user/msg/e102312217d6742d" rel="nofollow noreferrer">this lengthy diatribe from October</a>) suggests I'm not (just) being stupid in not being able to get this to work.</p>
  
  <p>The how-to linked in the top answer to <a href="https://stackoverflow.com/questions/1822290/m2eclipse-and-eclipse-wtp">this question</a> seems hopelessly out of date.</p>
  
  <p>So, the real question - what is currently the correct way to use maven to generate a WTP-friendly project that can be converted to eclipse and then use eclipse to call the project's goals?</p>