Eclipse - WTP - Maven

Wednesday 28th May, 2008

As I use Eclipse and Maven I now added WTP Support to my multi-modul maven project.

This works after I followed this introduction:

http://www.jroller.com/JOKe/entry/configure_eclipse_3_3_wtp

So I added just the plugin tag into my pom.xml as described by jroller and than I added the M2_REPO variable to my eclipse environment

 

  1. open >window->preferences
  2. got to Java->Build Path->Classpath Variable
  3. add "M2_REPO" and select your repository folder '$USER/.m2/repository'

No I added a new "Run-As" Target under the maven build target and called it "eclispe-wtp" - Goal= eclipse:eclipse

and alos a second target called "eclipse-wtp-clear" with goal="eclipse:clear"

Now I can easily add WTP support to my web project. 

Do not forget to refresh your project after the maven eclipse:eclipse goal!

 

Comments [0]