How do I enable index downloads in Eclipse for Maven dependency search?

JavaEclipseMaven

Java Problem Overview


I am using Eclipse Luna with the m2e plug-in. When I search for dependencies, I get the following warning (also see the screenshot after):

> Index downloads are disabled, search result may be incomplete.

enter image description here

How can I enable index downloads?

Java Solutions


Solution 1 - Java

  1. In Eclipse, click on Windows > Preferences, and then choose Maven in the left side.
  2. Check the box "Download repository index updates on startup".
  • Optionally, check the boxes Download Artifact Sources and Download Artifact JavaDoc.
  1. Click OK. The warning won't appear anymore.
  2. Restart Eclipse.

http://i.imgur.com/IJ2T3vc.png

Solution 2 - Java

Tick 'Full Index Enabled' and then 'Rebuild Index' of the central repository in 'Global Repositories' under Window > Show View > Other > Maven > Maven Repositories, and it should work.

The rebuilding may take a long time depending on the speed of your internet connection, but eventually it works.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAshishView Question on Stackoverflow
Solution 1 - JavaBohneView Answer on Stackoverflow
Solution 2 - JavaShahbaazView Answer on Stackoverflow