1, into Maven's official website https://maven.apache.org/
2, the left found Download (Download) Click then came the third step
3, and then click on download
4, find a place to download
5, right-click My Computer Properties Click to go to find -> Advanced System Settings found on the left -> click Environment Variables
6, click New -> define the variable name -> value of the variable Click Browse to find the directory path you installed Maven
7, find the path Click to go to -> and click New -> Add% M2_HOME% \ bin and then click OK, and then turn back to save (remember to save)
8, to see if the installation configuration is successful
Open cmd (cmd in the Windows Search will pop up cmd) -> input mvn -version you can view your downloaded version maven, maven if you do not find that description before you may have the wrong configuration, or your command is wrong, you can troubleshoot it!
9, if you want to set your own maven repository specified path, then left this step, otherwise the default path, then the next step directly
Into the conf folder -> then click into the file settings.xml
After entering the settings.xml file, set up its own warehouse specified path and click Save
10, open IDEA -> shortcut keys Ctrl + Alt + S enter idea set
Finally, click apply -> ok
This way it is done!