aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Classic error: Unable to update index for central|http://repo1.maven.org/maven2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Classic error: Unable to update index for central|http://repo1.maven.org/maven2 " Watch "Classic error: Unable to update index for central|http://repo1.maven.org/maven2 " New topic
Author

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

nitesh chauhan
Greenhorn

Joined: Jul 02, 2009
Posts: 3
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

Joined: May 14, 2008
Posts: 5836
    
    7

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.


JBoss In Action
nitesh chauhan
Greenhorn

Joined: Jul 02, 2009
Posts: 3
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

Joined: May 14, 2008
Posts: 5836
    
    7

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

Joined: Jul 02, 2009
Posts: 3
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

Joined: May 14, 2008
Posts: 5836
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classic error: Unable to update index for central|http://repo1.maven.org/maven2