After downloading, extract the zip file. Once done with downloading, see the folder-
apache-maven-3.3.9.
Now, create a system variable and set the path by following the below instructions.
Go to
My Computer -> Right click on
My Computer ->
Properties ->
Advance System Settings
Go to
(1)Advanced
(2) Click on
Environment Variables
.
(3) In System Variables, Click on
New
.
(4) Enter the Variable Name:
MAVEN_HOME
and
Variable Value:
C:\apache-maven-3.3.9
(5) Click on
OK
.
(6) Set the path for Maven by double clicking on
Path
in System Variable.
(7) Put semicolon(
;) before entering the path. This path will be in the Maven bin folder. It looks like
C:\apache-maven-3.3.9\bin
(8) Click on
OK
.
Now, the installation process of Maven is completed.
To check whether the installation process is successful or not, go to Command Prompt and enter
mvn -version. If the installation is successful, the following output appears. Otherwise, an error will be shown.