Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
290 views
in Technique[技术] by (71.8m points)

Unindexed remote maven repositories in IntelliJ IDEA 14

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

Notification text

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.

Error after update

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.

question from:https://stackoverflow.com/questions/32037082/unindexed-remote-maven-repositories-in-intellij-idea-14

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...