Install Maven on CentOS
1. Find the latest installation package on the official website: http://maven.apache.org/download.cgi?bay file name * -bin.tar.gz link address; 2. Download # wgethttp: // tar xvf apache-maven-3.3.3-bin.tar.gz if needed: move to other directories to establish soft connections: # ln-s apache-maven-3.3.3 maven4, configure the environment variable # vi/etc/profile
Export M2_HOME =/usr/local/apache-mavenexport PATH = $ PATH:
$ M2_HOME/bin
# Source/etc/profile5. 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