How to Install Apache Maven on Windows

How to Install Apache Maven on Windows

How to Install Apache Maven on Windows Apache Maven is a software project management and comprehension tool. This is developing under Apache Foundation. This tutorial will help you to install Apache Maven on Windows system.


Apache Maven required Java Development Kit (JDK) to be installed on the system. Apache Maven 3.3 requires JDK 1.7 or above to execute. So make sure your server fulfill requirements before installing Apache maven.

    • Maven 3.3.X => JAVA 7 or later
    • Maven 3.2.X => JAVA 6 or later
    • Maven 3.1.X => JAVA 5 or later

Download Apache Maven

To download the latest version of Apache Maven, Visit its official website download page. At the writing time of this tutorial, Apache Maven 3.3.9 is the latest version available.

For this tutorial, I have downloaded and extract its content under c:\Apache\Maven

Configure JAVA_HOME

Make sure you have set JAVA_HOME environment variable. If not already set, add this under system environment variables. To open system properties type sysdm.cpl from run window.

Configure Maven Environment

Apache Maven required MAVEN_HOME and M2_HOME environment variable to set. You also need to add Apache maven bin location under systems PATH environment variable.


Also appened ;c:\Apache\Maven\bin under Path environment variable.

Verify Installation

Finally, You have successfully installed Apache Maven on your Windows system. Now open a command prompt and run mvn –version command to verify installation and installed version.

C:\Users\Mathan> mvn --version 

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:4
Maven home: c:\Apache\Maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_121\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"

Read More: How To Install Apache Maven on Ubuntu 16.04 and 14.04

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!

Enjoyed this video?
How to Install Apache Maven on Windows
"No Thanks. Please Close This Box!"