Time for action – installing the Maven build tool

Many build tools are available for building a Java project. We are going to use Maven 3.2.1 as our build tool. Let's take a look at how we can install Maven:

  1. Go to Maven's download page by entering the following URL on your browser:

    http://maven.apache.org/download.cgi

  2. Click on the apache-maven-3.2.1-bin.zip download link, and start the download.
  3. Once the download is finished, go to the downloaded directory and extract the .zip file into a convenient directory of your choice.
  4. Now we need to create one more environment variable, called M2_HOME, in a way that is similar to the way in which we created JAVA_HOME. Enter the extracted Maven zip directory's path as the value for the M2_HOME environment variable. ...

Get Spring MVC Beginner’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.