0
自從昨天以來,我一直在嘗試使用使用Eclipse m2e的Maven。在某些時候,我無法再從中央存儲庫中檢索索引列表。更新似乎不起作用,並顯示以下錯誤消息:使用Eclipse更新Maven中央存儲庫時出錯m2e
eclipse.buildId=4.5.1.M20150904-0015
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
org.eclipse.m2e.logback.appender
Error
Tue Jan 12 13:08:37 CET 2016
Unable to update index for central|https://repo.maven.apache.org/maven2
java.lang.NullPointerException
at org.apache.lucene.store.IndexOutput.writeString(IndexOutput.java:102)
at org.apache.lucene.index.SegmentInfo.write(SegmentInfo.java:504)
at org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:307)
at org.apache.lucene.index.SegmentInfos.prepareCommit(SegmentInfos.java:761)
at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4636)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3369)
at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1654)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1602)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1578)
at org.apache.maven.index.context.NexusIndexWriter.close(NexusIndexWriter.java:58)
at org.apache.maven.index.context.IndexUtils.close(IndexUtils.java:376)
at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:529)
at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:212)
at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:75)
at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:645)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:829)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:156)
at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1140)
at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateIndex(NexusIndexManager.java:1084)
at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager$1.run(NexusIndexManager.java:656)
at org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob.run(IndexUpdaterJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
我不能擴大在Maven倉庫視圖存儲庫和添加依賴時從儲備庫中獲得任何搜索結果。
我試着更新和重建索引,刪除工作區.metadata
文件夾,該文件夾{home}/.m2
的AppData/Local/Temp/
關係/ m2的條目,只需重新安裝Eclipse,但似乎沒有任何工作。
不知道,但是一個NPE似乎表明你在配置中缺少某些東西。對不起,沒有更多的幫助。 –