Fix why Nexus-maven-repository-index issues need to be updated every time you open eclipse new workspace

Source: Internet
Author: User

Fix why Nexus-maven-repository-index issues need to be updated every time you open eclipse new workspace

    1. Create a new Eclipse workspace.
    2. Open Window->preferences as shown in:
    3. After you open preferences, click Maven to see download repository index updates on STARTP right maven. To uncheck this option, click Apply and click OK. As shown in the following:
    1. Before already have the download Good Repository index already has the working space, finds. Metadata.pluginsorg.maven.ide.eclipsenexus. Copy the central folder under the directory to the new workspace under the corresponding. Metadata.pluginsorg.maven.ide.eclipsenexus directory. Replaces the central folder and its contents that are automatically generated by the original system.
    2. To complete the above steps, let's set up the Nexus-maven-repository-index update manually. Open Eclipse's Window->show view->other ... as shown in:
    1. Once open, find Maven, click to see Maven Indexes, select click OK to enter. As shown in the following:
    1. The following automatically appears in the View window, there should be a good three columns of records, respectively, workspace, local and central, respectively, corresponding to the project Java code, local maven library and the official library. As shown in the following:
    1. Check local and right click, will appear update index, click on Update Index, that is, completed the manual update Nexus-maven-repository-index, no longer from the remote official library to download.

These steps solve the problem of automatically downloading Nexus-maven-repository-index from the official library each time a new workspace is created.

First check all of your dependencies including plugins and children in the dependency tree,
Try to replace snapshot versions with release versions,
As snapshot versions would always look for a later update, whereas
Release versions is deemed to be stable and updates is not expected for the same version number.

Secondly, assuming that is working on a LAN, I would suggest so you install a local MAVEN repository manager such a S Nexus, and then redirect your artifact requests by setting
<mirrorOf>*</mirrorOf>In your ${user.home}/.m2/settings.xml

This'll enable your downloads to be resolved quickly against a local mirror rather than continually checking against re Positories on the Internet.

Http://stackoverflow.com/questions/5012567/why-does-eclipse-take-so-long-to-update-maven-dependencies

Fix why Nexus-maven-repository-index issues need to be updated every time you open eclipse new workspace

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.