How to install a maven on a windows system?

So I have recently joined an MNC and in this company, I guess I will be working on java so I asked my peer to give me some POC’s so that I can learn and play together.

The POC is like create a core java app using a maven and connect it to a database with some sample data of students. Later on, call this service using angular and show the data.

During the process I learned to install the maven so I want to share that with you guys may be this is helpful maybe not but this will help me improve my knowledge.

Steps :

  1. Download the Binary zip for maven

Maven - Download Apache Maven
Apache Maven 3.6.3 is the latest release and recommended version for all users. The currently selected download mirror…
maven.apache.org

2. Extract Maven in “C” drive or wherever you feel that's totally your choice

3. Add the path of the Maven in the Environment variables.

3.1 Create a new environment variable name

Variable Name: MAVEN_HOME

Variable Value : C:\userid\apache-maven-3.6.3

3.2 Now add the maven in the path also

path → edit → C:\userid\apache-maven-3.6.3\bin

4. check maven is installed or not

cmd → mvn

5. If this shows something then it means it is properly installed.

If anyone faces any problem just write the comment I would love to help you guys.