Install Maven On Windows

Maven is a command-line tool for building Java (and other) programs. The Maven project provides a simple ZIP file containing a precompiled version of Maven for your convenience. There is no installer. It’s up to you to set up your prerequisites and environment to run Maven on Windows.

Prerequisites

Java

Installation

Click Here to download Apache Maven and unzip it.

JAVA_HOME

Create a JAVA_HOME System Variable as shown below in Figure 4.1

Figure 4.1 Figure 4.1

MAVEN_HOME

Now Create a MAVEN_HOME System Variable as shown below in Figure 4.2

Figure 4.2 Figure 4.2

Add PATH

Add %M2_HOME%\bin; to your System Path as shown below in Figure 4.3

Figure 4.3 Figure 4.3

Verify

Type “mvn –version” to verify the details.

It should print out your installed version of Maven, for example:

No comments yet.

Leave a Reply