Modify the default maven2 Resource Repository address in eclipse (useful)

Source: Internet
Author: User

After maven2 is integrated in eclipse, eclipse will create a directory under your system disk (C:/) by default,
C:/Documents and Settings/danlley/. m2/Repository
And use it as the Data Warehouse directory. If one day you unfortunately need to redo the system and cannot transfer the data in the maven2 warehouse directory in time, all your previous maintenance of the maven2 warehouse would mean that the basket was empty. To minimize your loss in maven2 and improve the security factor of your so-called labor achievements, we recommend that you migrate your data warehouse as follows: 1. Open eclipse
2. Window --> references --> JAVA --> build path --> classpath Variables
3. In the above two operations, you will see a variables attribute named m2_repo.
4. Double-click Properties or click Edit.
5. Modify properties C:/Documents and Settings/danlley/. m2/Repository to E:/maven-2.0.4/. m2/Repository OK. Now you can rest assured! In addition, if you want to direct the installed maven2 data warehouse to a backup folder, you can
E:/maven2/maven2/Conf
Next, find a settings. xml file, open the file, and find the following node for modification. <Localrepository> E:/maven-2.0.4/. m2/Repository </localrepository> Note: The settings here are best the same as those configured in eclipse to occupy unnecessary disk space and repeatedly download resources. However, I found that if you download and update Maven http://m2eclipse.codehaus.org/update-dev/at the following URL, you can set the repo of my website.
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.