1 download
$ wget http://apache.mirror.rafal.ca/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.zip
2 unzip
$ unzip apache-maven-3.5.0-bin.zip
$ sudo mv apache-maven-3.5.0 /usr/local/
3 set env
$ sudo vi /etc/profile
export MAVEN_HOME=/usr/local/apache-maven-3.5.0
export PATH=$MAVEN_HOME/bin:$PATH
网友评论