How to solve, Classic error: Unable to update index for central|http://repo1.maven.org/maven2

How to solve, Classic error: Unable to update index for central|http://repo1.maven.org/maven2. Sometimes Eclipse failed to index the repository due to errors/configurations. In such scenarios, even if you try to search in the repositories, it will fail due to the non indexed repo.To fix these kind of problems, try the following.

Steps:
1.) Exit Eclipse IDE
2.) Delete workspace_location/.metadata/.plugins/org.maven.ide.eclipse/nexus
3.) Delete workspace_location/.metadata/.plugins/org.eclipse.m2e.core/nexus
4.) Open Eclipse IDE
5.) Go to Window->Preferences->Maven and enable checkbox named “Download repository index updates on startup”.
6.)Restart Eclipse IDE
7.) Wait for the repository to index completely. It is necessary to have a good internet connection to update.

Leave a Comment

Your email address will not be published. Required fields are marked *