Create a MAVEN Web project with Eclipse
Eclipse:luna
maven:3.3.3
1. Install the JDK and configure the environment variables (this Baidu a lot)
2. Download maven, unzip and configure environment variables
cmd Command Window mvn-v appears to indicate success
3.eclipse configuration Maven:windows--preferences--maven--installations, click the Add button
Windows--preferences--maven--user settings in the configuration corresponding to the Settings.xml
4. Start creating a Web project
The directory structure of the finished project is as follows
Right-click the project and modify the corresponding JRE version (eclipse default is 1.5)
Right-click the project Properties--project Facets see the configuration as
At this point, cancel the dynamic Web Module option and select the Java option as 1.7 of the previous step configuration and click Apply to confirm. At this point, the Dynamic Web module check box is checked again, and the Furtherl link appears below
Click the link to enter the configuration, in order to keep the directory consistent, modify content directory for Src/main/webapp
Click OK, at this point, the project directory has already appeared the structure of the Web project
First blog, please give us a lot of advice
Eclipse creates a Maven project