Unable to update index for nexus_mirror

 

用eclipse中的m2eclipse更新nexus indexs 时,发生如下错误

!MESSAGE Unable to update index for nexus_mirror|http://localhost:8081/nexus/content/groups/public/
!STACK 0
java.io.IOException: No response received after 60000
 at org.maven.ide.eclipse.internal.index.AsyncFetcher$PipedErrorInputStream.checkError(AsyncFetcher.java:181)
 at org.maven.ide.eclipse.internal.index.AsyncFetcher$PipedErrorInputStream.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.downloadIndexProperties(DefaultIndexUpdater.java:498)
 at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$100(DefaultIndexUpdater.java:74)
 at org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:780)
 at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:954)
 at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:138)
 at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1072)
 at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(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(IndexUpdaterJob.java:71)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.util.concurrent.TimeoutException: No response received after 60000
 at com.ning.http.client.providers.netty.NettyAsyncHttpProvider$ReaperFuture.run(NettyAsyncHttpProvider.java:1566)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)

 

 

其实是因为在本机上nexus正在 updating index正在更新索引,此时m2eclipse到nexus索取索引,nexus 不理会m2eclipse的请求所以发生m2eclipse" Unable to update index for nexus_mirror".这是个并发超时异常。

 

必须等到nexus更新完毕公共的索引之后,m2eclipse才能更新获得nexus的索引。

 

即等到

 

jvm 1    | 2011-04-15 20:37:37 INFO  [pool-1-thread-1] - org.sonatype.nexus.feed
s.DefaultFeedRecorder - Updating repository group index "Public Repositories" fr
om path / and below. : Process started on Fri Apr 15 19:53:10 CST 2011, finished
 successfully on Fri Apr 15 20:37:37 CST 2011

 

nexus提示完成更新之后,m2eclipse才去更新,就更新成功了。

你可能感兴趣的:(eclipse,jvm,Path)