MAC OS configuration Maven

Source: Internet
Author: User

Steps:

1. Download the Maven tar package

Https://maven.apache.org/download.cgi?Preferred=http%3A%2F%2Fmirrors.tuna.tsinghua.edu.cn%2Fapache%2F

Here is the latest version of download 3.5.0

2. Download and unzip to the/usr/local/maven/directory (if not, create new.) The/usr directory is hidden by default, in addition to the available commands to exercise its display [self-Baidu], can also be spotlight input/usr/quickly jump to the directory)

/usr/local/maven/apache-maven-3.5.0

3. Create Environment variables

CD to root path, CD ~

    1. Vim. Bash_profile

Press I to enable edit mode, add the following command:

Export maven_home=/usr/local/maven/apache-maven-3.5.0

Export path= $PATH: $MAVEN _home/bin

2. Esc:wq Save and exit

    

4. See if MAVEN is installed successfully

New terminal

  

Reference Link: http://blog.csdn.net/anialy/article/details/22217937

MAC OS configuration Maven

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.