Install Maven in CentOS and maven in centos
1, the official website to find the latest version of the installation package: http://maven.apache.org/download.cgi
Copy the link address with the file name * -bin.tar.gz;
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 the environment variable # 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 (optional; 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: "linux", version: "3.10.0-229. el7.x86 _ 64 ", arch:" amd64 ", family:" unix"
(For Original Articles, please note