Which one is better?
They are different. The maven-eclipse plugin is very lightweight because it does nothing once the project has been imported into Eclipse, but does not provide real integration: there is no bi-directional support, there is no pom.xml editor, there are no fancy wizards, there is no module creation from Eclipse ... I personally it doesn't matter what many of these features are. However, there is one thing that I really need in many projects: support for filtering resources within the IDE. m2eclipse does this because it implements Maven.
I'm not sure m2eclipse imports a maven project internally using the "maven-eclipse-plugin" to convert to an eclipse project.
No, this does not add a new nature to the project.
Does maven-eclipse-plugin support WTP 3.1 project parameters? From my experiments, maven-eclipse-plugin cannot create WTP 3 above compatible settings.
The plugin can create WTP R7, 1.0, 1.5, and 2.0 configuration files. WTP 2.0 configuration files are compatible with WTP 3.0 (the structure has not changed).
You can declare the wtpversion parameter on the command line or in the plugin configuration. Below is an example:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8</version> <configuration> <projectNameTemplate>[artifactId]-[version]</projectNameTemplate> <wtpmanifest>true</wtpmanifest> <wtpapplicationxml>true</wtpapplicationxml> <wtpversion>2.0</wtpversion> <manifest>${basedir}/src/main/resources/META-INF/MANIFEST.MF</manifest> </configuration> </plugin>
source share