Site icon TestingDocs.com

Download Maven on Windows 11

Overview

In this tutorial, we will Download Maven on Windows 11 operating system. We will also install and set up the Maven tool on Windows 11. Windows 11 is the latest operating system from Microsoft.

Apache Maven is an open-source build automation tool. Java should be installed on the machine and the JAVA_HOME environment variable set to the JDK home directory.

Environment

This post uses the below environment

 

Download Maven

Open the Web browser and navigate to Maven’s official website.

https://maven.apache.org/

Click on the Download link. Download the .zip compressed archive file.

Verify the Maven Download

C:\Users\testingdocs\Downloads>certutil -hashfile apache-maven-3.8.3-bin.zip SHA512

 

The generated SHA512 hashcode should match the hash listed on the Maven website.

This step is to verify the integrity of the download. On production systems verification of the checksums is recommended.

 

Extract Contents

Extract the contents. Right-click on the maven zip file and choose the Extract All… menu option.

This will extract the .zip file contents.

 

Set System Variables

Copy the maven folder to a suitable path on the computer. For example to C:\maven

Set the MAVEN_HOME environment variable that points to the maven install directory on the machine.

 

 

Add the %MAVEN_HOME%\bin to the PATH environment variable.

Verify the setup.

Launch a command prompt and issue the following command:

\> mvn -v 

This should display the version of the Maven tool.

 

 

That’s it. We have successfully downloaded and installed the Maven tool on Windows 11 machine.

Windows 11 Tutorials

https://www.testingdocs.com/windows-11-tutorials/

Exit mobile version