Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Development tips for the Maven tool.

Install Maven

Download the stable version of maven (1.0.2) from http://maven.apache.org/maven-1.x/start/download.html.

Info

Before installing maven you must have already installed Java 1.5.

Warning

The version of Maven should be 1.0.2. The 1.1.x series has been found to be buggy. And the 2 release is incompatible with 1.x.

Install Maven by double-clicking on the downloaded file which should be called maven-1.0.2.exe.
 
If JAVA_HOME is not set, an error will occur.

...

Copy the value from the Explorer bar into the new variable.

You will also have to add the bin directory of the maven installation to your PATH environment variable:

Image Added

Now, you should be able to use maven from the command line.

Tip
titleSymlinking the Cache Directory

On Unix, Maven will download many external jars to your home directory. This can be a problem if you have limited disk space. The easiest way to get around this problem is creating a symlink from an area where you have more space.

Code Block

cd /scratch/
mkdir .maven
cd ~
ln -s /scratch/.maven

Now the location on the scratch disk will hold the Maven downloads rather than the home directory.

Tip

Development tips for the Maven tool.