Configuring Maven with IntelliJ idea (getting started)

Time:2021-1-25

First of all, I declare that this article is not original by eamonsec. I don’t know where it came from now. Maybe the person I transferred is not original…

1. Download maven 
Official address:http://maven.apache.org/download.cgi

Configuring Maven with IntelliJ idea (getting started)

Unzip and create a new local warehouse folder

Configuring Maven with IntelliJ idea (getting started)

2. Configure the local warehouse path 
Configuring Maven with IntelliJ idea (getting started) 
Configuring Maven with IntelliJ idea (getting started)

3. Configure Maven environment variables

Configuring Maven with IntelliJ idea (getting started) 
Configuring Maven with IntelliJ idea (getting started) 
Configuring Maven with IntelliJ idea (getting started) 
Configuring Maven with IntelliJ idea (getting started) 
Configuring Maven with IntelliJ idea (getting started)

4. Configure Maven in IntelliJ idea 
Open – file settings
Configuring Maven with IntelliJ idea (getting started)

5. New Maven web project 
Open file new project
Click next
Configuring Maven with IntelliJ idea (getting started) 
Click next
Configuring Maven with IntelliJ idea (getting started) 
The added configuration is archetypecatalog = internal
Click next
Configuring Maven with IntelliJ idea (getting started) 
Click next
Configuring Maven with IntelliJ idea (getting started) 
Click Finish to create the project
Click on the lower right corner to view it
Configuring Maven with IntelliJ idea (getting started)

6. Maven web template project structure 
Configuring Maven with IntelliJ idea (getting started)Configuring Maven with IntelliJ idea (getting started)

Configuring Maven with IntelliJ idea (getting started)

Configuring Maven with IntelliJ idea (getting started) 
Similarly, create a new test folder under main, and then create a new test folder under this folderJavaTest source folder and resource test resource folder
Configuring Maven with IntelliJ idea (getting started) 
You can also right-click project – select open module settings to open the project configuration page
Configuring Maven with IntelliJ idea (getting started)

7. Configuration depends on jar package 
Configuring Maven with IntelliJ idea (getting started)

Jar package configuration search
Official address:http://mvnrepository.com/

Recommended Today

Practice of query operation of database table (Experiment 3)

Following the previous two experiments, this experiment is to master the use of select statements for various query operations: single table query, multi table connection and query, nested query, set query, to consolidate the database query operation.Now follow Xiaobian to practice together!Based on the data table (student, course, SC, teacher, TC) created and inserted in […]