• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
nitesh chauhan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am facing a situation where my eclipse indigo is "Unable to update index for central|http://repo1.maven.org/maven2"
i am using an external maven 3.0.3 installation
and i am definitely not behind any proxy
also my networking configuration in eclipse is all set to direct.
still i am unable to update the indexes.

is there anything else that i may have overlooked?

please help me out on this.
Regards
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitesh, welcome to JavaRanch!

If you run mvn from the command line, does it download JARs without any problems?

Also, have you modified the settings.xml file? I assume not based on the repository URL you provided.
 
nitesh chauhan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

yes, it is able to download the jars.

and i don't have any settings.xml file in the .m2 directory


Regards
Nitesh...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only thing I can think of is that your workspace is corrupt. Try creating a new workspace and create a Maven project in that workspace and see if that works. If that works, you can copy over your projects from the old workspace to the new.

By the way, it often takes the m2eclipse plugin a while to get the indexes updated, so you might just need to wait a bit. I know that one of my colleagues was in my office several times complaining about various error he was getting with m2eclipse, and those all just went away after a while.
 
nitesh chauhan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i tried creating a new work-space and created a mvn simple project. still the issues stays as it is. unable to update the index's
i also tried to get it from a mirror location. but it was of no use.

also is this link
http://m2eclipse.sonatype.org/installing-m2eclipse.html

similar to this
http://m2eclipse.sonatype.org/ ----> this in turn is asking me to go to http://eclipse.org/m2e/ and then install


also, do you believe installing nexus will solve this issue?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that Sonatype recently move the m2eclipse development to Eclipse, hence the change in the URL.

Installing Nexus should not have any bearing on this problem. But then since you would be pointing at the Nexus repository instead of Maven Central, and you would be relying on Nexus to index Maven Central, it just might work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic