Installing Maven on Windows

Apache Maven is a software project management and comprehension tool. We will see how it can be set up on a Windows machine?

First of all, we need to download maven from the given link: https://maven.apache.org/download.cgiHow to Setup Maven on Windows

Extract the downloaded ZIP file and save in your machine Setup environment variable as shown below.How to Setup Maven on Windows

Follow the following steps to get the above screen.

  1. Right-click on the My Computer icon from your desktop
  2. Click Properties
  3. Click Advanced tab
  4. Click Environment Variables button
  5. You would see Environment Variables interface
  6. Click New associated with System variables section
  7. You would see the New System Variable interface
  8. Put MAVEN_HOME into the variable name fieldHow to Setup Maven on Windows
  9. Put path of your Maven into the variable value field, as in the above screen my ANT Home directory is installed on C:\Program Files (x86)\Java\apache-maven
  10. Click OK
  11. In the System Variables, you would see the variable Select the row, click Edit and define two paths (C:\Program Files (x86)\Java\apache-maven\bin) like in the following screen, in our case path of Maven bin folder is C:\Program Files (x86)\Java\apache-maven\bin
  12. Click OKHow to Setup Maven on Windows
  13. To check setup run command mvn -version as shown in below screen

How to Setup Maven on Windows

You may also like: How to Resolve a Merge Conflict on GitHub?

Leave a comment

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