First you need to install the JDK and download the JDK installation from the official website.
Configuration java_home: Your JDK installation directory
Classpath:.; %java_home%\lib;%java_home%\lib\tools.jar;
Path:; Your JDK installation directory \ Bin;
Enter Java-version If the JDK configuration succeeds
Download the required version from the MAVEN website and I am using version 3.2.5. Download Apache-maven-3.2.5-bin.zip file. If you need a more advanced version, download the appropriate Bin.zip file. Unzip to the folder you want to install
In the environment variable, create a new m2_home, set to the Maven decompression directory. Modify the path variable to add%m2_home%\bin after the original value;
Restart your computer
Enter mvn-v on the command line to see if MAVEN is configured successfully
If it appears below then congratulations on your MAVEN configuration success:
MAVEN installation Detailed