Install Maven on Windows

When I am writing this blog, the MAVEN version is 3.5.2. This blog is relevant to install current latest version on Windows 10.

Note – Maven 3.3+ require JDK 1.7 or above to execute.

Prerequisite

Install JDK 1.7 or higher on your operating system

Set JAVA_HOME

Set JAVA_HOME system variable added as windows environment Variable.

snagit7

Download Apache Maven

Download latest Apache Maven from Official Maven site. In this case – apache-maven-3.5.2-bin.zip

snagit6

Unzip the file in the desired location. In my case unzipped to this folder – C:\install\apache-maven-3.5.2

snagit5

Set M2_HOME

Set M2_HOME system variable added as windows environment Variable. Point this vairable to unzipped maven location. In my case, it is C:\install\apache-maven-3.5.2

snagit4

Update PATH Variable

Update Path System variable in environment variable list to include %M2_HOME%/bin folder.

snagit2

Open your command prompt and run “mvn -version”. You will see Apache maven version along with Maven and java home details.

snagit1

Congratulations you have successfully configured Maven on your Windows operating system.

Reference – http://maven.apache.org/download.cgi

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s