To follow the steps in this tutorial, you must have the following:
Internet connection (required by Maven).
Install a suitable Java runtime (JDK 1.5.x). After installing, set your
JAVA_HOME environment variable to point to the root directory of your Java
runtime; also set your PATH environment variable to include the Java
bin directory.
Download and install Apache Maven (2.x), a general purpose tool for building and packaging applications. To download, visit: http://maven.apache.org/download.html.
After installing Maven do the following:
Set your M2_HOME environment variable to point to the Maven root
directory.
Set your MAVEN_OPTS environment variable to -Xmx512M.
(This setting increases memory available for Maven builds.)
Set your PATH environment variable to include the Maven
bin directory (%M2_HOME%\bin on Windows or
$M2_HOME/bin on UNIX).
![]() | Note |
|---|---|
You can use the maven command mvn -version to verify that Java and maven are installed correctly. Example output: |