O'Reilly logo

Maven for Eclipse by Sanjay Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Maven

Before we install Maven, we need to have JDK installed. Check out the Java installation with the following command:

>javac -version

For Windows, open the command prompt, and for Linux/Mac OS, open the terminal and use the preceding command to see the version of the JDK that is installed.

If JDK is not installed, please refer to following link and install it:

http://www.oracle.com/technetwork/java/javase/index-137561.html

Once Java is in place, let's move towards Maven's installation.

Maven's installation is a simple two-step process:

  • Setting up Maven home, that is, the M2_HOME variable
  • Adding Maven home to the PATH variable

Installing Maven on Windows

The installation of Maven is just setting up Maven home in the extracted Maven folder. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required