1, the official website to find the latest version of the installation package: Release 1, the official website to find the latest version of the installation package: http://maven.apache.org/download.cgi copy file name * -bin.tar.gz link address; 2, download # wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz 3, unzip # tar xvf apache-maven-3.3.3-bin.tar.gz if needed: move to another directory to establish a soft connection: # ln-s apache-maven-3.3.3 maven 4, configure environment variables # vi/etc/profile
export M2_HOME=/usr/local/apache-mavenexport PATH=$PATH:$M2_HOME/bin
# Source/etc/profile 5. verify whether the installation is successful # mvn-versionApache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19: 57: 37 + 08: 00) Maven home: /opt/app/mavenJava version: 1.8.0 _ 51, vendor: Oracle configurationjava home:/usr/java/jdk1.8.0 _ 51/jreDefault locale: zh_CN, platform encoding: UTF-8OS name: & quot; linux & quot;, version: & quot; 3.10.0-229. el7.x86 _ 64 ", arch:" amd64 ", family:" unix "(original article, reprinted, please note