Pages

Thursday, January 16, 2014

Install Maven on Linux

http://stackoverflow.com/questions/12076326/how-to-install-maven2-on-redhat-linux

From the command line; you should be able to simply do:
wget http://mirrors.digipower.vn/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
  1. Run command above from the dir you want to extract maven to (e.g. /usr/local/apache-maven)
  2. run the following to extract the tar:
    tar xvf apache-maven-3.0.4-bin.tar.gz
  3. Next add the env varibles such as
    export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4
    export M2=$M2_HOME/bin
    export PATH=$M2:$PATH
  4. Verify
    mvn -version

No comments:

Post a Comment