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
Subscribe to:
Post Comments (Atom)
1 comment:
To import Maven project with enabled WTP 2.x or 3.x support, all you need to do is to have WTP support for m2eclipse installed. Then Checkout Maven from SCM or import Maven project would properly import project and there is no need to run eclipse:eclipse
See mini howto at http://docs.codehaus.org/display/M2ECLIPSE/WTP+mini+howto
Post a Comment