Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Unable to update index for remote repository
Unable to update index for remote repository [message #652632] Fri, 04 February 2011 19:07 Go to next message
ChrisM  is currently offline ChrisM
Messages: 1
Registered: February 2011
Junior Member
Hello,

I am taking over a project that uses Maven (m2eclipse) from a contractor that my company hired.

I'm having difficulty getting Maven to download all dependencies from the internet.

The .log file is displaying 404 errors for the web address that is set for the repository. This is despite the fact I can manually navigate to the given address through my browser. I have confirmed with our corporate IT that the traffic is making it past the our proxy. But I'm still getting 404 errors.

Here are the two maven url's I'm trying to update indexes from:
http://maven.restlet.org
http://maven.springframework.org

Here is the full log errors that I'm referring to. Any help would be greatly appreciated.

!ENTRY org.maven.ide.eclipse 4 0 2011-02-04 13:45:08.103
!MESSAGE Unable to update index for spring-maven|http://maven.springframework.org
!STACK 0
java.io.IOException: Server returned status code 404: Not Found
at org.maven.ide.eclipse.internal.index.AsyncFetcher$PipedError InputStream.checkError(AsyncFetcher.java:181)
at org.maven.ide.eclipse.internal.index.AsyncFetcher$PipedError InputStream.read(AsyncFetcher.java:188)
at java.io.PipedInputStream.read(PipedInputStream.java:361)
at java.io.InputStream.read(InputStream.java:85)
at java.util.Properties$LineReader.readLine(Properties.java:418 )
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.downloa dIndexProperties(DefaultIndexUpdater.java:498)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$ 100(DefaultIndexUpdater.java:74)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAd aptor.setProperties(DefaultIndexUpdater.java:780)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAn dUpdateIndex(DefaultIndexUpdater.java:954)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAn dUpdateIndex(DefaultIndexUpdater.java:138)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.updat eRemoteIndex(NexusIndexManager.java:1072)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.updat eIndex(NexusIndexManager.java:1025)
at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run (NexusIndexManager.java:632)
at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(Ind exUpdaterJob.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException: Server returned status code 404: Not Found
at org.maven.ide.eclipse.internal.index.AsyncFetcher$RequestHan dler.onStatusReceived(AsyncFetcher.java:258)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider. updateStatusAndInterrupt(NettyAsyncHttpProvider.java:1273)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider. messageReceived(NettyAsyncHttpProvider.java:1018)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleU pstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChanne lHandlerContext.sendUpstream(DefaultChannelPipeline.java:754 )
at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUps tream(ChunkedWriteHandler.java:144)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChanne lHandlerContext.sendUpstream(DefaultChannelPipeline.java:754 )
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messag eReceived(HttpContentDecoder.java:104)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleU pstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChanne lHandlerContext.sendUpstream(DefaultChannelPipeline.java:754 )
at org.jboss.netty.channel.Channels.fireMessageReceived(Channel s.java:302)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfold AndfireMessageReceived(ReplayingDecoder.java:523)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDe code(ReplayingDecoder.java:507)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messag eReceived(ReplayingDecoder.java:444)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleU pstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUps tream(HttpClientCodec.java:77)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:540)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channel s.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channel s.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker. java:350)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelected Keys(NioWorker.java:281)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.j ava:201)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenami ngRunnable.java:108)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerR unnable.java:46)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

!ENTRY org.maven.ide.eclipse 4 0 2011-02-04 13:45:08.446
!MESSAGE Unable to update index for maven-restlet|http://maven.restlet.org
!STACK 0
java.io.IOException: Server returned status code 404: Not Found
at org.maven.ide.eclipse.internal.index.AsyncFetcher$PipedError InputStream.checkError(AsyncFetcher.java:181)
at org.maven.ide.eclipse.internal.index.AsyncFetcher$PipedError InputStream.read(AsyncFetcher.java:188)
at java.io.PipedInputStream.read(PipedInputStream.java:361)
at java.io.InputStream.read(InputStream.java:85)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:188)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:174)
at org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtil s.java:1108)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater$LocalCa cheIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:868)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAn dUpdateIndex(DefaultIndexUpdater.java:995)
at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAn dUpdateIndex(DefaultIndexUpdater.java:138)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.updat eRemoteIndex(NexusIndexManager.java:1072)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.updat eIndex(NexusIndexManager.java:1025)
at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run (NexusIndexManager.java:632)
at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(Ind exUpdaterJob.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException: Server returned status code 404: Not Found
at org.maven.ide.eclipse.internal.index.AsyncFetcher$RequestHan dler.onStatusReceived(AsyncFetcher.java:258)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider. updateStatusAndInterrupt(NettyAsyncHttpProvider.java:1273)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider. messageReceived(NettyAsyncHttpProvider.java:1018)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleU pstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChanne lHandlerContext.sendUpstream(DefaultChannelPipeline.java:754 )
at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUps tream(ChunkedWriteHandler.java:144)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChanne lHandlerContext.sendUpstream(DefaultChannelPipeline.java:754 )
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messag eReceived(HttpContentDecoder.java:104)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleU pstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChanne lHandlerContext.sendUpstream(DefaultChannelPipeline.java:754 )
at org.jboss.netty.channel.Channels.fireMessageReceived(Channel s.java:302)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfold AndfireMessageReceived(ReplayingDecoder.java:523)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDe code(ReplayingDecoder.java:507)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messag eReceived(ReplayingDecoder.java:444)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleU pstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUps tream(HttpClientCodec.java:77)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( DefaultChannelPipeline.java:540)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channel s.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channel s.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker. java:350)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelected Keys(NioWorker.java:281)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.j ava:201)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenami ngRunnable.java:108)
at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerR unnable.java:46)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
Re: Unable to update index for remote repository [message #653156 is a reply to message #652632] Tue, 08 February 2011 17:31 Go to previous messageGo to next message
Jordan Hein is currently offline Jordan Hein
Messages: 8
Registered: July 2009
Junior Member
I have never had much luck getting the plugin to download repository indexes. I tend to browse the repositories, find what I am looking for then manually add a dependency to my pom file.

We also have Artifactory running in house and it proxies remote repositories for us... so my projects all pull artifacts from Artifactory and it figures out how to find the artifacts in the remote repositories.

As to the 404 error, I browsed to http://maven.springframework.org and it doesn't look like a repository to me or at least it looks very screwy. Maybe this will help: http:// blog.springsource.com/2009/12/02/obtaining-spring-3-artifact s-with-maven/

I also browsed to http://maven.restlet.org/ and that looks more like a repo but the indexes do not look like my Artifactory indexes. In Artifactory I see a "nexus-maven-repository-index.properties" file and a "nexus-maven-repository-index.zip" file. So I am thinking that http://maven.restlet.org/ might have some outdated indexing... but I'm no real expert. Cheers!
Re: Unable to update index for remote repository [message #673798 is a reply to message #653156] Tue, 24 May 2011 19:12 Go to previous messageGo to next message
Ming  is currently offline Ming
Messages: 1
Registered: May 2011
Junior Member
I have a similar issue.. I am trying to create a common Eclipse IDE for our project to use... now occasionally on the install of eclipse the update index works but most times it doesn't. I am using external maven 3.0. I am just at a lost of where or what setting I need, or how to debug this.. when it just comes back and says unable to update the index. Please post solution
Re: Unable to update index for remote repository [message #685718 is a reply to message #673798] Sat, 18 June 2011 09:00 Go to previous message
Miquel Martin is currently offline Miquel Martin
Messages: 2
Registered: July 2009
Junior Member
I finally solved this problem, but I'm not completely sure what the problem was.
I simply erased $HOME/.m2/repository
Presumably, this had been created by command line maven, and was interfering with m2e... I'm still a bit mystified about why, though. I'll report if I find out!

[Updated on: Sat, 18 June 2011 09:01]

Report message to a moderator

Previous Topic:Where are my jars? pom.xml modified, Only poms downloaded
Next Topic:Deploying to tomcat
Goto Forum:
  


Current Time: Thu Oct 23 16:36:16 GMT 2014

Powered by FUDForum. Page generated in 0.01733 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software