Installing MAVEN and configuring environment variables under Mac

Source: Internet
Author: User

1. Download Maven Package:

Download link:?? http://maven.apache.org/download.cgi

Maven Download File Explanation:

1?? Binary tar.gz Archive: Is installed on Linux, MacOSX.

2?? Binary Zip Archive: is installed on Windows.

3?? Binary represents compiled binaries, which are generally small and suitable for direct use in projects.

4?? Source indicates that you can view the sources, larger than binary, if you want to see Maven source code can download this kind of.

2. Configure the MAVEN environment variable (first make sure that the Java environment variable is configured):

    1?? First double-click Binary tar.gz archive file, extract to the file directory;

2?? View file path: 1) First, open the terminal;

2) Then drag the apache-maven-3.5.0 folder into the terminal, the folder path will be displayed;

3?? On the terminal, open the Configure environment variable to file:

1) in the terminal input Vim ~/.bash_profile, into the environment variable configuration file;

2) After entering, it is read mode, press I (Edit) key, enter insert mode;

3) Add environment Variables in fact, the environment variables are as follows:

Export maven_home=/users/robbie/apache-maven-3.3.3

Export path= $PATH: $MAVEN _home/bin

4) Press ESC to exit insert mode, 5) Enter: Wq (save modify) to exit the current file, 6) make the modified environment variable bash_profile file effective, enter the source. Bash_profile, press ENT Er key.

Installing MAVEN and configuring environment variables under Mac

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.