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
- Run command above from the dir you want to extract maven to (e.g. /usr/local/apache-maven)
- run the following to extract the tar:
tar xvf apache-maven-3.0.4-bin.tar.gz
- 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
- Verify
mvn -version
No comments:
Post a Comment