Install Maven in CentOS and maven in centos

Source: Internet
Author: User

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
Related Article

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.