Download and install
Official download address : direct to the official website download page
After entering the download page, select the corresponding version of maven to download according to the jdk version installed on your computer.
After downloading, unzip it and put it in any location. I put it together with IEDA and TomCat, and then I configure the environment variables
Click My Computer-"Properties-" Advanced System Settings-"Advanced-" Environment Variables
Find the system variable-"click New-" take a name called "M2_HOME" and the variable value is the path you just unzipped. My path is D: \ Program Files \ Java \ apache-maven-3.6.3 and then confirm
When you find Path, click Edit and add% M2_HOME% \ bin
Note (if you click to edit a text box, you must add a semicolon at the back;) I actually have added a semicolon by default
Then open cmd and type mvn -v
This completes the successful installation