Configuration of the eclipse associated maven local warehouse

Source: Internet
Author: User

First, download the MAVEN plugin and configure the MAVEN environment variables, refer to: http://jingyan.baidu.com/article/cb5d61050b8ee7005d2fe04e.html

Second, open eclipse->windows-->preferences--maven-->installations-->add---->directory Choose the location of your extracted Maven Finish--applay.

Third, a local folder to store the jar package resources;

Iv. find the Settings.xml file for the Maven plugin that you downloaded, and make a copy of the root node of the MAVEN download directory to modify it, because team collaboration is the key to maintaining a consistent definition relative to the team setup .

so conf the following settings.xml as a common configuration file for the team. Unified configuration to ensure that all team members have the same configuration. modify the copied file as a custom; Locate the <localrepository node to configure the path of the folder you have built to the text node, and note to change "\" to "/," My configuration is as follows:

<!--localrepository   | The path to the local repository maven would use to store artifacts.   Default: ${user.home}/.m2/repository  <localRepository>/path/to/local/repo</localRepository>  -  <localRepository>D:/apache-maven-3.5.0/Maven_repository</localRepository>

Five, open Eclipse->windows-->preferences--maven-->user settings, such as, select the above modified Settings.xml file, apply can

end!

Configuration of the eclipse associated maven local warehouse

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.