1. Download maven
Official address: http://maven.apache.org/download.cgi
Unzip and create a new local warehouse folder
2. Configure the local warehouse path
3. Configure MAVEN Environment variables
4. Configuring Maven in IntelliJ Idea
Open-file-settings
5. Create a new MAVEN Web project
Open-file-new-project
Click Next
GroupID and artifactid< project name > also version, these three properties are intended to identify the uniqueness of your project.
Click Next
The added configuration is archetypecatalog=internal
Click Next
Click Next
After clicking Finish, the project starts to create
Click in the lower right corner to view it.
6.maven Web Template Project Structure
Recources folder: Typically used to store some resource files
WebApp folder: Used to store Web configuration files and JSP pages, etc., which has formed an original web application
Also create a new test folder under Main, and then create a new Java Test source folder and resource Test resource folder under this folder
You can also right-click the project-select open Module settings to change the project configuration page
7. Configure the Dependent Jar package
Jar Package Configuration Search
Official address: http://mvnrepository.com/
Article excerpt from: http://blog.csdn.net/qq_32588349/article/details/51461182
Maven configuration, using IntelliJ idea and maven to create a Java Web project