table of Contents
1. Download from Maven official website:
2. Configure environment variables:
Maven is a Java-based tool, so the first thing to do is to install the JDK.
1. Download from Maven official website:
https://maven.apache.org/download.cgi
After entering the homepage of the official website, select Download on the left, as shown in the figure below:
Select the version you want to download, as shown in the figure below:
After the download is complete, select a path to decompress (it is recommended to decompress to the full English path).
2. Configure environment variables:
1. In the "System Variables", create a new MAVEN_HOME, if it already exists, click Edit, as shown in the picture:
2. Add "%MAVEN_HOME%\bin" to the PATH, as shown in the following figure:
Then win+R run cmd and enter mvn -version, as shown in the figure, the configuration is successful: