IntelliJ IDEA 14中未编制索引的远程maven存储库 [英] Unindexed remote maven repositories in IntelliJ IDEA 14

查看:1560
本文介绍了IntelliJ IDEA 14中未编制索引的远程maven存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将现有的Gradle项目导入IntelliJ IDEA。我一直收到通知:




找到未编制索引的远程maven存储库。 禁用...



您的gradle项目中使用的以下存储库尚未编入索引:

  java .lang.RuntimeException:
org.codehaus.plexus.repository.exception.ComponentLookupException:
java.util.NoSuchElementException

role:org.apache.maven.execution.MavenExecutionRequestPopulator
role提示:

我现在该怎么办?我怎么解决这个问题?我不是在寻找一种禁用通知的方法。重新启动IDEA没有帮助,尝试更新存储库索引在下次尝试后立即失败。

解决方案

这是一个已知的错误:
https://youtrack.jetbrains.com/issue/IDEA-102693



有一个zip文件,附带了一个补丁,据我所知,它将很快作为14.1版的官方补丁包含在内。


I've imported an existing Gradle project to IntelliJ IDEA. I keep getting a notification:

Unindexed remote maven repositories found. Disable...

The following repositories used in your gradle projects were not indexed yet: http://repo1.maven.org/maven2

If you want to use dependency completion for these repositories artifacts, Open Repositories List, select required repositories and press "Update" button (show balloon)

So, I've opened the Repositories List and as you might imagine there is http://repo1.maven.org/maven2 with the Type=Remote and Updated=Never. The problem is, when I click on the Update button, IDEA takes a few minutes and then reports an error.

java.lang.RuntimeException: 
org.codehaus.plexus.repository.exception.ComponentLookupException:
java.util.NoSuchElementException

role: org.apache.maven.execution.MavenExecutionRequestPopulator
roleHint: 

What should I do now? How can I solve this problem? I'm not looking for a way to disable notifications for this. Restarting IDEA doesn't help, trying to Update the repository index fails immediately after the next attempt.

解决方案

This is a known bug: https://youtrack.jetbrains.com/issue/IDEA-102693

There is zip file with a patch attached to the bug, and as far as I see it will soon be included as a official patch for version 14.1.

这篇关于IntelliJ IDEA 14中未编制索引的远程maven存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆