-
Enter maven official website http://maven.apache.org/
-
Click Download
-
Click the apache-maven-3.6.3-bin.zip link to download
-
My installation path here is: D:\maven\apache-maven-3.6.3-bin\apache-maven-3.6.3
-
Modify the settings.xml file in the conf directory
-
Modify the image inside and change it to a maven warehouse maintained by Alibaba Cloud. Its running speed is guaranteed in China!
-
Set the jar package storage location, I set it to the javaMvn folder of D drive here
-
Set system environment variables, add MAVEN_HOME variable, its path is the directory where maven is installed
-
Add maven's bin directory under the Path directory
-
window key + R input cmd to open a black window and input mvn -v, if the corresponding version number is output, the installation is successful
-
Next, open the Intellij IDEA environment, click the File menu in the upper left corner, and select the Settings option in the drop-down menu, as shown in the figure below
-
In the pop-up Settings interface, click "Build, Execution, Deployment", then click "Build Tools", select the "Maven" option, as shown below
-
Then click the Maven home directory setting button on the right, as shown in the figure below
-
Then in the pop-up Maven home directory selection interface, we locate the installation package just downloaded, as shown below
-
Next, click the settings button on the right side of the configuration file, as shown in the figure below, be careful not to use the configuration file that comes with the software
-
In the pop-up configuration file setting interface, we can select the settings.xml file under the maven installation package, as shown in the following figure
16. Finally back to the Intellij IDEA interface, we can see that the Maven environment has appeared on the right, and then everyone can use the commands under Maven to manage the project
Hope to be helpful to students who need to learn