How to Install Apache Maven on Windows 11

Apache Maven is an open-source build automation tool that is used primarily for Java projects. It helps to manage project build, reporting, and documentation. In this tutorial, we will go through the steps to install Apache Maven on Windows 11.

Prerequisites

Before we start, make sure that you have the following:

Steps to Install Apache Maven on Windows 11

  1. Download Apache Maven

Go to the official website of Apache Maven (http://maven.apache.org/download.cgi) and download the latest binary zip archive of Apache Maven.

  1. Unzip the Apache Maven archive

Once the download is complete, navigate to the download folder and extract the Apache Maven archive. You can extract the archive to any preferred location on your system.

  1. Set up Environment Variables

To set up the Environment Variables, navigate to the Start menu and search for “Environment Variables.” Select “Edit the system environment variables” from the search results.

Environment Variables Search

On the System Properties window, select the “Environment Variables” button.

Environment Variables Window

Under “System Variables,” click on the “New” button to add a new variable.

Set the Variable name as “MAVEN_HOME” and the Variable value as the location where you have extracted the Apache Maven archive on your system.

Environment Variable Setup

Next, find the “Path” variable under the “System Variables” and click on “Edit”.

Edit Path Variable

Add the following line in the “Edit environment variable” window:

%MAVEN_HOME%\bin

Add to Path Variable

Click “OK” to save the changes.

  1. Verify Installation

To verify your installation, open the command prompt, and type the following command:

mvn --version

If Apache Maven is installed correctly, you will see the version number of Maven and the Java version in the command prompt.

Verify Installation

Congratulations! You have successfully installed Apache Maven on Windows 11.

Conclusion

In this tutorial, we have gone through the steps to install Apache Maven on Windows 11. With Apache Maven installed, you can now use it to build and manage your Java projects efficiently.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!