Apache - Maven - Installation

Maven is a great tool that can really help you to manage a project.
Its main goal is to building projects, publishing project information and a sharing JARs across several projects.

We will see, in this tutorial, the installation of Maven 3 on Windows.

Installation of Maven 3 on Windows operating system

Let's first download the latest version from the official website of Apache Maven: http://maven.apache.org/download.html

Then extract files in the directory of your choice.
For our example, we will assume this one: C:\soft\apache\maven-3

Now open your Environment Variables window.
An easy way is to click WinKey + Pause, then click Avanced settings.
Finally click Environment Variables.

If you don't know how to set these variables, have a look of the section 1.B of my tutorial installation of Ant.
This is the same, except that you have to enter a new variable for Maven, for example APACHE_MAVEN, or whatever you want.
Add it to the PATH as mentioned in the Ant tutorial.

Now open a command window to see if Maven is correctly installed.
WinKey + R and write cmd.
In the new black window that has just appeared, type this:

$ mvn --version

If you see some lines like this:

Apache Maven 3.0.3
Maven home: C:\soft\apache\maven-3\bin\..
Java version: 1.7.0, vendor: Oracle Corporation
etc.

So your Maven software is ready to be used!

Great job laugh

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.