Maven – Unindexed remote maven repositories in IntelliJ IDEA 14

intellij-ideamaven

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.

Best Answer

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.