Its really simple
You can download a binary release of Maven from http://maven.apache.org/download.html.
Exact it and copy it to the /usr/local
Use following steps
/usr/local % cd /usr/local
/usr/local % ln -s apache-maven-2.2.1 maven
/usr/local % export M2_HOME=/usr/local/maven
/usr/local % export PATH=${M2_HOME}/bin:${PATH}
You also need to set the environment variable
M2_HOMEto the top-level directory you installed (in this example,/usr/local/maven)
export M2_HOME=/usr/local/mavenexport PATH=${M2_HOME}/bin:${PATH}
Once Maven is installed, you can check the version by running mvn -v from the command-line. If Maven has been installed, you should see something resembling the following output. $ mvn -v Apache Maven 2.2.0 (r788681; 2009-06-26 08:04:01-0500) Java version: 1.5.0_19 Java |
No comments:
Post a Comment