Maven installation guide

Installing Maven2 differs very little what ever system you are running. Basically only the installation paths are different.

Step 1: Download

First you need to download the maven binaries (I assume you don't wish to build your own maven, do you?) from Maven website.

For Windows user the Windows binary and for *nix users the *nix binary.

Step 2: unpack

The actual installation is easy. Just unzip/untar the package to where ever you wish. Just remember the developer rule of thumb to use only paths without spaces in them :D (or you'll be in trouble again).

Good places are paths like c:\maven2 on Windows and /opt/maven2 on Unix/linux.

Step 3: configure

Only configuration that really is needed is the settings.xml in ${USER_HOOME}/.m2. Even this file is not really needed if you are not behind a proxy server, BUT if you are, this stumb file should get you going. Note, that the ${USER_HOME} refers to your home folder. In Windows this usually is c:\Documents And Settings\yourusername and in Unix/Linux /home/yourusername. So, full path in e.g. Linux would be /home/yourusername/.m2/settings.xml


<settings xmlns="">



Fill in the things that are needed and leave others blank. See the Maven settings reference for information on other possible options.

Another configuration which will ease-up life drastically, is to add the bin folder under Maven installation to the PATH enviromental variable. Then you shouldn't have to use the full path to maven executable when using it. In Windows you can find the path settings under the system configuration from the Control panel. Unix/Linux users should add it to the startup scripts like /etc/profile or ~/.bashrc.

Verify this by running command

mvn -version

in the console/prompt. If a maven version info appears you are goo to go.

Development DevelopmentToolsMaven

  Page Info My Prefs Log in
This page (revision-7) last changed on 18:24 25-Mar-2017 by Mikko Wuokko.
JSPWiki v2.4.102