How Maven is configured in eclipse

Source: Internet
Author: User

Most yards are familiar with eclipse, with Eclipse development projects, MAVEN is a very useful Java tool to solve the dependent library, can integrate with eclipse, easy to manage the Web,java project and so on, but many beginners do not know how to configure Maven; I often use the MAVEN framework, the following describes how to configure Maven in Eclipse, the author personally published Oh.

Tools/Materials
    • Eclipse-standard-luna-sr2-win32-x86_64
    • apache-maven-3.3.3 is installed.
Method/Step
  1. 1

    First step: Configure the MAVEN Library

    1. Create a new folder locally to store the jar libraries that Maven needs. As shown in the following:

    2. Modify MAVEN configuration file Settings.xml,d:\apache-maven-3.3.3\conf\settings.xml. Point the configuration file to the folder you just built. As shown in the following:

  2. 2

    Step two: Eclipse configuration maven

    1, open the Cclipse, turn windows-->prefrences, click on the right side of Maven triangle symbol to expand the Maven configuration interface, the interface as shown:

  3. 3

    2. Then click on the installations option below MAVEN and the following interface appears, click the Add button as shown:

  4. 4

    3, then please select your Maven installation path, here my Maven installation directory for D:\apache-maven-3.3.3, select your Maven installation directory, and click OK, then click Apply, click OK, the interface as shown:

  5. 5

    4. Then click on the user Settings option under MAVEN and the following interface will appear, please click on the second browse. button, select the Maven profile settings.xml that you configured in the first step. Then click on the Update Settings button below, then click on the Apply button below, click OK to complete. As shown in the following sequence:

  6. 6

    Step three: Test if MAVEN is installed successfully

    1. Open Eclipse and create a MAVEN project. Click File-->new-->maven Project, select Create a simple project (skip archetype selection), then click the Next button. As shown in the following:

  7. 7

    2, then fill in the group ID and artifact ID, version default, packaging default to Jar,name,description optional, the other is not filled, then click Finish button to complete. As shown in the following:

    END
Precautions
    • Please make sure maven and JDK are properly configured.
    • If this article is helpful to you or you like, please click to vote or add attention, thank you!

How Maven is configured in 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.