Fix why Nexus-maven-repository-index issues need to be updated every time you open eclipse new workspace
- Create a new Eclipse workspace.
- Open Window->preferences as shown in:
- 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:
- 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.
- 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:
- Once open, find Maven, click to see Maven Indexes, select click OK to enter. As shown in the following:
- 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:
- 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