How To Install Maven On Windows 10

how to set up windows 10
In order to setup maven with a Windows machine you will need to setup JDK first as Maven is often a Java based tool. If you are installing Maven 3.3 then you definitely required JDK version 1.7 or higher.

If JDK is installed on your Windows machine then you certainly can jump to maven installation steps which I have mentioned below. To install JDK you could possibly refer my earlier post for comprehensive guideline.

Steps to fit Maven on Windows 10



  1. Set JAVA_HOME path


  2. Download Maven Zip


  3. Setup environment variable for Maven (M2_HOME)


  4. Verify installation


1) Setup JAVA_HOME



Please be sure to have set the JAVA_HOME path after installing of the JDK. You may refer my previous article to build JAVA_HOME path in Windows machine.

How to put JAVA_HOME path in Windows 10



2) Download Maven Zip

Download maven zip file through the official website and extract it towards the directory you wish to setup. And configure the surroundings variable. I have downloaded apache-maven-3.5.0-bin.zip under C:Program FilesMaven for demonstration purpose.

3) Add new environment variables for Maven (M2_HOME) and append it for the PATH variable



Add M2_HOME variables within the Windows environment variable, and point it in your Maven folder.

Update PATH variable and append maven bin folder %M2_HOME%bin to PATH variable



4) Verify Installation

Go to windows command line and verify maven setup.



how to put in windows 10How to fit Maven on Windows 10

1. Set JAVA_HOME path

2. Download Maven Zip

3. Setup environment variable for Maven (M2_HOME)

4.
Next Post Previous Post
No Comment
Add Comment
comment url