Installation and configuration of Maven under Linux:
I am using apache-maven-3.3.9-bin.tar.gz------install MAVEN on the premise that JDK installation is successful: java-version Test--JDK Installation Reference my article "JDK Installation and Configuration":/http Www.cnblogs.com/shilin000/p/5244339.html
1. Place the installation package under/usr/local
2. Unzip TAR-XVF apache-maven-3.3.9-bin.tar.gz
3. Set Environment variables: vi/etc/profile: Add
Export JAVA_HOME=/USR/LOCAL/JAVA/JDK1. 7 . 0_67export m2_home=/usr/local/apache-maven-3.3. 9 export PATH= $PATH: $JAVA _home/bin: $M 2_home/binexport CLASSPATH=.: $JAVA _home/lib/dt.jar: $JAVA _ Home/lib/tools.jar: $JAVA _home/jre/lib/rt.jar
4. Source/etc/profile Effective
5. Test if the installation is successful: MVN-V, the following instructions appear to install successfully:
Apache Maven3.3.9(BB52D8502B132EC0A5A3F4C09453C07478323DC5; -- One-10t08: A: -- ,:xx) Maven Home:/usr/local/apache-maven-3.3.9Java Version:1.7. 0_67, Vendor:oracle Corporationjava home:/usr/local/java/jdk1.7.0_67/Jredefault Locale:en_us, platform Encoding:utf-8OS Name:"Linux", Version:"2.6.32-573.el6.x86_64", Arch:"AMD64", Family:"Unix"
Installation and configuration of Linux---Maven