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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MyrinNew
    Senior Member
    • Feb 2024
    • 5168

    #1

    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)


    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


    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


      • 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
    5. Finally enter in the CMD mvn -v to confirm its correct installation and its installed version




    That's all! 💻







    More...
Working...