Step-1: Download the maven binary package from http://maven.apache.org/download.cgi
Step-2: Extract the tar file: tar -xvzf apache-maven-3.1.1-bin.tar.gz
Step-3: Create a folder in /usr/local with the name apache-maven and extract the above tar file in this directory which gives the file structure as: /usr/local/apache-maven/apache-maven-3.1.1
Step-4: Set your path variables as below:
export M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
Step-5: To check if maven is successfully installed: mvn --version
Step-2: Extract the tar file: tar -xvzf apache-maven-3.1.1-bin.tar.gz
Step-3: Create a folder in /usr/local with the name apache-maven and extract the above tar file in this directory which gives the file structure as: /usr/local/apache-maven/apache-maven-3.1.1
Step-4: Set your path variables as below:
export M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
Step-5: To check if maven is successfully installed: mvn --version
No comments:
Post a Comment