1: Import Maven WebApp project (take Extdirectspring-demo as an example):
Improt maven->exsiting maven Projects-->browses.
2: Convert Maven WebApp project to eclipse Web project
Right-click the project and click Properties->project Facets
3 running MAVEN Web project projects
3.1 Configuring the Run configurations, compiling the Extdirectspring-demo project
Right-click the project, RUN->run configurations, Maven build/new configuration, Browse Workspace: Select Project, Goals:compiler,
Configurations: That is the path of maven3.0.5.zip compression package decompression;
Note If it appears: Maven No compiler is provided in this environment. Perhaps is running on a JRE rather than a JDK?
WORKAROUND: 1 Complete "maven Combat (0) Eclipse maven plugin plug-in installation and configuration"
2 Checking JDK Java_home
3 Eclipse JDK configuration is correct: go to Window > Preferences > Java > Installed jres > Check installed JREs. There must be a JDK here; Go to Window & Gt Preferences > Java > Installed jres > Execution environments, select JavaSE-1.7 (if JDK is 1.7), select JDK on the right. Then use the " Update the project configuration.
3.2 Right-click Project, RUN->run configurations, Maven build/new configuration, Goals:tomcat:run
4 Execute Access Address: