MAVEN Tutorial

Maven Tutorials – Maven Eclipse IDE

Previous – Chapter 15

Maven Tutorial – Chapter 16

Maven Eclipse IDE

Maven also provides an excellent plugin which helps to integrate both eclipse ide and maven together. M2eclipse is the plugin used to integrate maven and eclipse. Below are some of the key benefits of this plugin:

  • Launching maven builds from the eclipse.
  • Launching maven goals as well.
  • Managing the dependencies for eclipse build path.
  • Automatic download of maven dependencies from the repository.
  • GUI based (wizards based) for creating maven projects.
  • Quick fix for the required dependencies.

Install m2eclipse plugin

Follow the below link to easily install the m2eclipse plugin in your eclipse IDE.
http://books.sonatype.com/m2eclipse-book/reference/ch02s03.html

Creating a maven project in eclipse

Below is the step by step explanation on creating a maven project in eclipse

  1. Open the eclipse. File -> New -> Project and search by the keyword maven and select “Maven project”
    me_1
    2.  Selection the option “Create a simple project” and click on next.me_2Provide the details for groupId, artifactId, version and packaging as shown below and click on finish.

    me_3

    A new project name “SampleMavenProject” will be created as shown below:

    me_4


Comments

One response to “Maven Tutorials – Maven Eclipse IDE”

  1. good work

Questions? Comments? Suggestions? Let us know!! Like / Subscribe / Follow for more updates.