Java Reference
In-Depth Information
Installing Maven
Besides graphical tools, you are strongly encouraged to learn about Maven, the pop-
ular software and release management tool. By using Maven, you will enjoy:
• A standard structure for all your projects
• A centralized and automatic management of dependencies
Maven is distributed in several formats, for your convenience, and can be down-
loaded from http://maven.apache.org/download.html .
Once the download is complete, unzip the distribution archive (for example,
apache-maven-3.0.4-bin.zip ) to the directory in which you wish to install
Maven 3.0.4 (or the latest available version), for example, C:\apache-
maven-3.0.4 .
Once done, add the M2_HOME environment variable to your system so that it will
point to the folder where Maven has been unpacked.
Next, update the PATH environment variable by adding the Maven binaries to
your system path. For example, on the Windows platform, you should include
%M2_HOME%/bin in order to make Maven available in the command line.
Testing the installation
Once you have completed your installation, run mvn --version to verify that
Maven has been correctly installed:
mvn --version
Apache Maven 3.0.4 (r1075438; 2011-02-28
18:31:09+0100)
Maven home: C:\apache-maven-3.0.4\bin\..
Java version: 1.6.0, vendor: Sun Microsystems
Inc.
Java home: C:\Programmi\Java\jdk1.6.0\jre
Default locale: it_IT, platform encoding: Cp1252
Search WWH ::




Custom Search