1, the official website found the latest version of the installation package: http://maven.apache.org/download.cgi
Copythe file name is *-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 a different 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:
$M 2_home/bin
# Source/etc/profile
5. Verify that the installation succeeded # 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 Corporationjava home:/usr/java/jdk1.8.0_51/jredefault LOCALE:ZH_CN, platform Encoding:utf-8os name: "Linux", Version: "3.10.0-229.el7.x86_64", Arch: "AMD64", Family: "Unix"
(original articles, reproduced please indicate the CSDN blog from Clement-xu. )
Copyright NOTICE: This article is the original article, reprint please indicate the CSDN blog which is transferred from Clement-xu.
CentOS installation Maven