Install maven under centos6.x

Source: Internet
Author: User
1. download the maven package and download the latest version of maven.apache.org/from the official website http://maven.apache.org. Idea. g 1. download the maven package
First from the official website http://maven.apache.org/download the latest version of Maven.

The downloaded package is apache-maven-3.2.1-bin.tar.gz.

2. decompress the maven package

Execute tar-zxvf apache-maven-3.2.1-bin.tar.gz

For decompression success page 3. put it in the desired directory (optional)

Put the decompressed files in the/opt directory.

Run sudo music apache-maven-3.2.1/opt

4. change link

Execute ln-s apache-maven-3.2.1 apache-maven

5. configure environment variables 6. changes take effect

Execute source/etc/profile to make the profile take effect

7. check whether the configuration is successful.

Run mvn-v

If yes, the installation is successful.

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.