What is MAVEN ?
Read here : http://maven.apache.org/
Here are the steps to download and install Maven on linux :
Step 1 : Download the latest binary from the http://maven.apache.org/download.cgi.
Note: Don't delete the previous PATH, Just append the M2_HOME path after :
Now save and close the file then logout and login back to see the effects, To confirm where the installation has done properly or not, check :
Congratulation... you are done here :)
Read here : http://maven.apache.org/
Here are the steps to download and install Maven on linux :
Step 1 : Download the latest binary from the http://maven.apache.org/download.cgi.
apache-maven-3.0.4-bin.tar.gzStep 2 : Untar it using tar command.
tar -zxvf /usr/local/apache-maven-3.0.4-bin.tar.gzStep 3: Add Maven binary Path to the System Path i,e add in .bash_profile path
$ cd $HOMESet PATH and M2_HOME as follows
$ vi ~/.bash_profile
M2_HOME=/usr/local/apache_maven-3.0.4save the file by pressing esc : wq button
PATH=PATH=$PATH:$HOME/bin:/usr/local/apache_maven-3.0.4/bin
Note: Don't delete the previous PATH, Just append the M2_HOME path after :
Now save and close the file then logout and login back to see the effects, To confirm where the installation has done properly or not, check :
mvn --versionyou will see following ouput :
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /usr/local/apache-maven-3.0.4
Java version: 1.7.0_10, vendor: Oracle Corporation
Java home: /usr/local/jdk1.7.0_10/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.18-92.el5", arch: "amd64", family: "unix"
Congratulation... you are done here :)
No comments:
Post a Comment