How can I update Maven Index manually?

eclipse, maven

Solution

- Delete the cache from `.m2/repository/.cache/m2e`.

- Open your eclipse

- Menu Windows > Preferences > Maven > User Settings > Update Settings

Eclipse will download it again, should work now.

Problem

I have this problem: When I start Eclipse (Indigo Service Release 1 with Maven Integration for Eclipse) it's trying to download a file from Maven Repositories : ``` repo1.maven.org/maven2/.index/nexus-maven-repository-index.gz ``` It reaches about 10-20% (this takes loooong) and then apparently it gives up: ``` 02.05.12 08:47:36 MESZ: Updating index central|http://repo1.maven.org/maven2 02.05.12 09:09:25 MESZ: Unable to update index for central|http://repo1.maven.org/maven2 ``` Now I tried to download this gz-file manually because I thought, the download hits any timeout within Eclipse. Now I have another two problems: - The direct download of the 48,7 MB-gz-file canceled after 9,6 MB. I have no clue why. - If I'd be able to download the gz-file, I don't know how to "put it into" Eclipse/Maven or tell Maven to use the file on my PC and not the repository repo1.maven.org. Any helpful ideas or answers?

Original source