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.
Before we start, make sure that you have the following:
Go to the official website of Apache Maven (http://maven.apache.org/download.cgi) and download the latest binary zip archive of Apache Maven.
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.
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.
On the System Properties window, select the “Environment Variables” button.
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.
Next, find the “Path” variable under the “System Variables” and click on “Edit”.
Add the following line in the “Edit environment variable” window:
%MAVEN_HOME%\bin
Click “OK” to save the changes.
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.
Congratulations! You have successfully installed Apache Maven on Windows 11.
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!
Alternatively, for the best virtual desktop, try Shells!