MAVEN installation and specifying MAVEN for Eclipse

Source: Internet
Author: User

The latest version of Eclipse comes with Maven components, but you can use the latest version of Maven, which is installed externally, and describes how to install the configuration.

< a > install Maven

    1. Download maven

    2. After downloading, unzip, find a path to put in, the bin location in the environment variable, new environment variable Maven_home

    3. Path to add Maven's bin to path

    4. Because MAVEN relies on the Java Runtime environment, you need to configure the Java Runtime Environment before using MAVEN. Download and install the JDK, configure the JDK environment variable java_home, or MAVEN will not be able to use

    5. After the configuration is complete, at the Windows command prompt, enter MVN-V test, the configuration is displayed successfully

< two > Configure MAVEN local library address

1. Create a new library folder to hold the dependency package D:\coding\m2\repository for MAVEN downloads

2. Copy the settings.xml file from the Conf folder under the MAVEN installation path to D:\coding\m2\repository

3. Open D:\coding\m2\repository\settings.xml and add <localrepository>d:\coding\m2\repository to the <settings> tab </localrepository>, save.

< three > Specify external maven for eclipse

1. Open Eclipse, select Window->preference->maven->installations, click Add, and select the external installation path. Such as

    

2. Then choose the User Settings option, select the settings file path for our new library path D:\coding\m2\repository\settings.xml, select and click Update Settings, Eclipse automatically parses the library path specified in it to D:\coding\m2\repository and displays it in the following input box.

    

3. Select Apply application changes so that the external MAVEN completes the configuration.

MAVEN installation and specifying MAVEN for Eclipse

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.