Ide:eclipse Juno
Step 1:add Dynamic Web Module
Right click Project-> Properties-> project facets-> tick ' Dynamic Web Module '-> click ' Further Configurati On available '-> Set Content directory to ' Src/main/webapp '-> ok-> OK
Step 2:add Web Module to Source
Right click Project-> Properties-> Java build Path-> Source-> Add Folder-> tick ' Src/main/webapp ' ; OK-> OK
Step 3:add Deployment Assembly
Right click Project-> properties->deployment Assembly-> Add-> Java build Path Entries-> Maven Dependen Cies-> Finish->ok
If your project depends on another local project, your should be extremely carefully here,
An internal error occurred during: "Updating status for Tomcat v7.0 Server at localhost ..."
. Java.lang.NullPointerException
If you are encountered this problem, the solution are to depend on a jar from Maven server, does not depend in a local project, O Therwise maven may isn't know how to copy it to Webinf/lib.
Reference 1:http://newspringwork.iteye.com/blog/1727480