How to install Maven (Apache Maven) on Windows 11?

Download the Apache Maven binary distribution file in the ‘Files’ section, preferably the .zip (Go to https://maven.apache.org/download.cgi) Extract the distribution file to the C:\ directory (you can do the extraction using WinRAR) Copy the bin directory path from the created directory apache-maven-AnyVersion-bin Add the bin directory of the created directory apache-maven-AnyVersion-bin to the PATH environment variable. How to do it? Press the Windows key and enter ‘Environment variables’ Then press the Environment Variables button Double-click on the PATH environment variable Press New, and paste the path to the bin directory Press accept, accept, and accept on each window to close them Finally enter in the CMD mvn -v to confirm its correct installation and its installed version That's all!

May 25, 2025 - 02:10
 0
How to install Maven (Apache Maven) on Windows 11?
  1. Download the Apache Maven binary distribution file in the ‘Files’ section, preferably the .zip (Go to https://maven.apache.org/download.cgi)

    Screenshot of Maven download page (Apache Maven)

  2. Extract the distribution file to the C:\ directory (you can do the extraction using WinRAR)

  3. Copy the bin directory path from the created directory apache-maven-AnyVersion-bin

    Screenshot showing the copied bin directory path

  4. Add the bin directory of the created directory apache-maven-AnyVersion-bin to the PATH environment variable. How to do it?

    • Press the Windows key and enter ‘Environment variables

    Screenshot of the Environment Variables tool from the Windows menu

    • Then press the Environment Variables button

    Screenshot showing the click on the environment variables button

    • Double-click on the PATH environment variable

    Screenshot showing the double-click on the PATH environment variable

    • Press New, and paste the path to the bin directory

    Screenshot showing click on the button again and pasting of the path to the bin directory just copied

    • Press accept, accept, and accept on each window to close them
  5. Finally enter in the CMD mvn -v to confirm its correct installation and its installed version

    Screenshot showing the mvn -v command in the CMD to verify the version and the correct installation of Maven (Apache Maven)

That's all!