1. Configuring Maven in IntelliJ idea
Open-file-settings
2. Create a new MAVEN Web project
Open-file-new-project
Click Next
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.
3.maven Web Template project Structure
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
4. Configure the dependent Jar package
Intellij idea how to use Maven to compile
First,run--> Edit configurations, such as:
Then click the plus sign in the upper left corner to add a new configuration, such as:
Choose Maven, such as:
Fill in your own configuration information below, click on apply can be, such as:
The following can be seen in the toolbar will appear the information you just configured, click Run or Debug to run the Web project,
Configure MAVEN (Getting started) "Go" with IntelliJ idea