You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Setup Maven On Linux

Download the tarball for Maven 2.2.

On Linux, setup Maven as follows.

Untar the download in the directory where you wish to install Maven.

tar -zxvf apache-maven-2.2.1-bin.tar.gz

Setup the Maven environment. You may want to add these lines to your shell profile, which is ~/.bash_profile for the bash shell.

export MAVEN_HOME=/path/to/apache-maven-2.2.1
export PATH=$MAVEN_HOME/bin:$PATH

Now if you type the command mvn Maven should bootstrap itself.

Setup Maven On Windows

Download the Maven 2.2.1 zip file.

Unzip this file in the directory where you want to install Maven by moving the zip file there, right clicking on it, and selecting Extract Here.

Now add the MAVEN_HOME variable and make its value point to this directory by copying it out of the Explorer address bar.

Read this support page if you are unsure how to add environment variables on Windows.

Now add the value %MAVEN_HOME%/bin to the Windows path.

If you don't know how to add to the Windows system path, read this help page under Setting Path on Windows.

Open a command window by hitting ctrl-R and then typing cmd in the box and hitting enter. In the command window that pops up, type mvn and enter. Maven should bootstrap itself if you have setup everything correctly.

Setup Netbeans

Go to ?Netbeans Downloads and get the Java version.

Run the installer.

Uncheck register and usage boxes.

In Netbeans, go to Tools > Options > Miscellaneous > Maven.

In the box that says External Maven Home, enter the path from the MAVEN_HOME variable.

Check the Skip Tests button.

Under Global Execution Options, put in -q to turn off verbose Maven output.

The option -o can be added when you are running without an internet connection.

  • No labels