I am using the eclipse plugin for maven to create eclipse projects from maven pom.xml files.
mvn -Dwtpversion=1.5 eclipse:eclipse
This works great, and after some experimenting with several of the 400 different archetypes available, I decided to use the webapp-javaee6 archetype, which was the only one that created a set of dependencies that were accessible to everyone and that created a project that could be used with the WTP plugin.
Now the problem is that I would like to use mvn targets from eclipse. The accepted way to do this, I understand, is to use the m2eclipse plugin that I installed.
However, after I played a little and did not get anywhere, I found this comment in the .project file:
<comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
Further search (see this long diatribe from October ) suggests me not (just) being stupid, not being able to get it to work.
Interconnected in the top answer, this question seems hopelessly outdated.
So the real question is: what is the correct way to use maven to create a WTP-friendly project that can be converted to eclipse and then use eclipse to invoke the goals of the project?
source share