Facebooktwittergoogle_plusredditpinterestlinkedinmail

How to install Maven on Windows 10

In order to instal maven on Windows machine you will need install JDK on your windows machine.

–  Maven 3.3+ require JDK 1.7 or above to execute

Please refer my earlier post if you need to install Java 8 on Windows machine.

How to install Java 8 on Windows ?

  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 make sure you have set JAVA_HOME path after installation of JDK. You can refer my below post to setup JAVA_HOME path in Windows machine.

How to set JAVA_HOME path in Windows 10

2) Download Maven Zip

Download maven zip file from the official website and extract it to the directory you wish to install. And configure the environment variable. I have download apache-maven-3.5.0-bin.zip under C:\Program Files\Maven for demonstration purpose.

3) Setup environment variable for Maven (M2_HOME) and append it to PATH variable

Add both M2_HOME variables in the Windows environment variable, and point it to 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.

mvn -version

How to install Maven on Windows 10http://techieroop.com/wp-content/uploads/2017/08/maven_installtion_on_window10_techieroop_com.jpghttp://techieroop.com/wp-content/uploads/2017/08/maven_installtion_on_window10_techieroop_com-150x150.jpg Roopendra DevOPSMaven,,,
How to install Maven on Windows 10 In order to instal maven on Windows machine you will need install JDK on your windows machine.-  Maven 3.3+ require JDK 1.7 or above to executePlease refer my earlier post if you need to install Java 8 on Windows machine.http://techieroop.com/how-to-install-java-8-on-windows/Set JAVA_HOME path ...
<h2>How to install Maven on Windows 10</h2> In order to instal maven on Windows machine you will need install JDK on your windows machine.-  Maven 3.3+ require JDK 1.7 or above to executePlease refer my <a href="http://techieroop.com/how-to-install-java-8-on-windows/">earlier post</a> if you need to install Java 8 on Windows machine.http://techieroop.com/how-to-install-java-8-on-windows/ <ol> <li>Set JAVA_HOME path</li> <li>Download Maven Zip</li> <li>Setup environment variable for Maven (M2_HOME)</li> <li>Verify installation</li> </ol> <h3>1) Setup JAVA_HOME</h3> Please make sure you have set JAVA_HOME path after installation of JDK. You can refer my below post to setup JAVA_HOME path in Windows machine.http://techieroop.com/how-to-set-java_home-path-in-windows-10/ <h3>2) Download Maven Zip</h3> Download maven zip file from the <a href="http://maven.apache.org/download.cgi">official website</a> and extract it to the directory you wish to install. And configure the environment variable. I have download <a href="http://redrockdigimark.com/apachemirror/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.zip">apache-maven-3.5.0-bin.zip</a> under <strong>C:\Program Files\Maven</strong> for demonstration purpose.<a href="http://techieroop.com/wp-content/uploads/2017/08/Copy-Maven-Bin.png"><img class="aligncenter size-full wp-image-773" src="http://techieroop.com/wp-content/uploads/2017/08/Copy-Maven-Bin.png" alt="" width="731" height="222" /></a> <h3>3) Setup environment variable for Maven (M2_HOME) and append it to PATH variable</h3> Add both <strong>M2_HOME</strong> variables in the Windows environment variable, and point it to your Maven folder.<a href="http://techieroop.com/wp-content/uploads/2017/08/setup_m2_home.png"><img class="aligncenter size-full wp-image-775" src="http://techieroop.com/wp-content/uploads/2017/08/setup_m2_home.png" alt="" width="747" height="625" /></a>Update <strong>PATH</strong> variable and append maven bin folder <strong>%M2_HOME%\bin</strong> to <strong>PATH</strong> variable<a href="http://techieroop.com/wp-content/uploads/2017/08/Append-Path.png"><img class="aligncenter size-full wp-image-776" src="http://techieroop.com/wp-content/uploads/2017/08/Append-Path.png" alt="" width="731" height="629" /></a> <h3>4) Verify Installation</h3> Go to windows command line and verify maven setup. <pre>mvn -version</pre> <a href="http://techieroop.com/wp-content/uploads/2017/08/verify-maven-installation.png"><img class="aligncenter size-full wp-image-774" src="http://techieroop.com/wp-content/uploads/2017/08/verify-maven-installation.png" alt="" width="731" height="165" /></a>
(Visited 50 times, 51 visits today)
Facebooktwittergoogle_pluslinkedinrss