Eclipse Maven Integration



This is for older version of Eclipse; versions like Luna, Ganymede.

importing an existing maven project into the eclipse IDE

  1. Setup the eclipse workspace

    • Execute the following command for any workspace that would use the Maven:
      	mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
  2. Import the existing project

    1. At the command line, change to the directory containing the Maven POM file.  

    2. Issue the following command to generate eclipse Project files needed by the "Import existing Project..." dialog:
      			mvn eclipse:eclipse
    3. Use the Import "Existing Projects into Workspace" dialog, in eclipse, and select the directory containing the Maven POM file.

eclipse Web Projects

To create the project files for an eclipse Web Project issue this command in the directory with the pom.xml

mvn -Dwtpversion=2.0 eclipse:eclipse



Date Created

Date Created: 2009-05-21 13:13:35 -0500 (Thu, 21 May 2009)

Last Updated


back    |    top