Skip to content
vankeisb edited this page Mar 11, 2011 · 6 revisions

Eclipse has no decent support for maven. This page explains how we managed to configure it.

Works with Eclipse 3.6 Helios + WTP.

Project setup

First off, create the .project/.classpath files using the maven eclipse plugin :

%> mvn eclipse:eclipse -DdownloadSources=true -Dwtpversion=1.5

Then, import the project into your workspace (File->Import->Existing projects...).

Now, you'll need to do some config in order to launch/debug the webapp from eclipse :

  1. Configure a tomcat 6 server
  2. Create a web module for the web project
  3. In /.settings/org.eclipse.wst.common.component, add the following line

replace webapp-name by the final name of your webapp, i.e. where maven has built the expanded folder under "target"

Now you can publish the project and start/debug tomcat from eclipse.

Clone this wiki locally