First Download the apache-maven-3.0.5-bin.tar.gz from the http://maven.apache.org/download.cgi website.
Then go to the downloaded folder and extract the downloaded bundle using the following command.
tar
-zxf apache-maven-3.0.5-bin.
tar
.gz
Then copy that folder where ever you want in your computer. In this example I copy it to my home folder.
sudo
cp
-R apache-maven-3.0.5 /home/
aruna
Then the final step is to create the symbolic link to the maven executable. Use the following command to create the symbolic link.
sudo ln -s /home/aruna//apache-maven-3.0.5/bin/mvn /usr/bin/mvn
Now you are almost done and execute the following command to check the installation.mvn –version
Then you'll probably get the following output.
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21:28+0530) Maven home: /home/aruna/apache-maven-3.0.5 Java version: 1.6.0_45, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.11.0-12-generic", arch: "amd64", family: "unix"
That's it and see you in another post. :)
No comments:
Post a Comment