Download / Run Maven ( Windows )

What Is Maven ?

Apache Maven is project management tool based on POM (Page Object Model). Mostly used to build projects and its dependencies.

Using maven simplifies many tasks:

  1. To build a project easily.
  2. Compatibility with other maven projects.
  3. With help of POM File we can add all required dependencies to the project automatically.
    POM – Project Model Object.
  4. We can build project to jar, war.

Install Maven On Windows

Followed are the detailed steps to download and install maven on windows.

Step 1 : Download Maven.

Download Maven

Maven Download
Maven Download

Step 2 : Extract the zip file.

  1. Copy the zip file to any location.
  2. Extract the zip file.
  3. Copy the path to set it into the environmental variables.
    Example : C:\Maven\apache-maven-3.6.3\bin
Maven Download Zip
Maven Downloaded Zip

Step 3 : Add MAVEN_HOME in Environmental Variable.

  1. Right click on My Computer.
  2. Browse the path.
    My PC / Properties / Advanced System Settings / Environmental variables
  3. Click on New button.
  4. Add Variable name : MAVEN_HOME
  5. Add Variable value : C:\Maven\apache-maven-3.6.3
  6. Click on OK button.
Environmental Variables
Environmental Variables

Step 4 : Add MAVEN PATH in Environmental Variable.

  1. Click on the Path and add the Maven Path into it.
Maven Path
Maven Path

Add Maven Path : C:\Maven\apache-maven-3.6.3\bin
Click on OK button.

Add Maven Path
Add Maven Path

Step 5 : Verify the MAVEN Installation & its path.

  1. Open command prompt and type command : mvn -version

    Version of maven and Java will be displayed in the console.
Check Maven Version
Check Maven Version

2. Enter command : which mvn
Maven installation path will be displayed in the console.

Check Maven Path
Check Maven Path

Hope this information was helpful to you.
Feel free to comment if you face any issues or have any doubts
.

Leave Your Reply

Your email address will not be published. Required fields are marked *