Installation and configuration of Linux---Maven

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.