-
Notifications
You must be signed in to change notification settings - Fork 1
Eclipse
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.
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 :
- Configure a tomcat 6 server
- Create a web module for the web project
- 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.