• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic