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.
This post uses the below environment
- Windows 11 Operating System
- JDK 17
- Any web browser( Chrome browser / Firefox / Edge browser)
- Maven 3.8.x
Open the Web browser and navigate to Maven’s official website.
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 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
More Information on Windows 11