Developing with Eclipse and Maven

1.2. m2eclipse

1.2. m2eclipse

The m2eclipse plugin ( provides Maven integration for Eclipse. m2eclipse also has hooks into the features of both the Subclipse plugin ( and the Mylyn plugin ( The Subclipse plugin provides the m2eclipse plugin with the ability to interact with Subversion repositories, and the Mylyn plugin provides the m2eclipse plugin with the ability to interact with a task-focused interface that can keep track of development context. Just a few of the features m2eclipse provides include:

  • Creating and importing Maven projects

  • Dependency management and integration with the Eclipse classpath

  • Automatic dependency downloads and updates

  • Artifact Javadoc and source resolution

  • Creating projects with Maven Archetypes

  • Browsing and searching remote Maven repositories

  • POM management with automatic update to dependency list

  • Materializing a project from a Maven POM

  • Checking out a Maven project from several SCM repositories

  • Adapting nested multi-module Maven projects to the Eclipse IDE

  • Integration with Web Tools Project (WTP)

  • Integration with Subclipse

  • Integration with Mylyn

  • Form-based POM Editor

  • Graphical Display of Dependency Graph

  • GUI Presentation of Dependency Tree and Resolved Dependencies

There are many more features in m2eclipse beyond the list above and this chapter introduces some of the more impressive features that are currently available. Let’s get started by installing the m2Eclipse plugin.