Sunday, August 10, 2008

Ganymede, m2eclipse, wtp and tomcat hotdeploy

The best way to do this:

1. install dev version of m2eclipse with most of the optional plugins. The current release version has dependency issues

http://m2eclipse.sonatype.org/update-dev/

2. install subclipse

3. File->New->Other->check out project from SCM.

4. to convert an existing project to wtp web project: run mvn eclipse:eclipse -Dwtpversion=3.0. Note this is not working at the moment as maven eclipse plugin only supports 1.5 and 2.0.

5. instead you can do: check out the project as a regular svn project, create a new dynamic wtp web project in workspace using maven archetype: weba*, copy the existing source into the new project. note: do NOT overwrite the existing .project file