Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 438
beam022 Avatar asked Aug 16 '15 15:08

beam022


People also ask

What does Mvn idea idea do?

The Maven IDEA Plugin is used to generate files (ipr, iml, and iws) for a project so you can work on it using the IntelliJ IDEA. Support maven 2.2.

How to update Maven repository in IntelliJ IDEA?

You can try to restart IntelliJ IDEA and update Maven repositories. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Build Tools | Maven | Repositories.

Does IntelliJ IDEA work with repository indexes?

IntelliJ IDEA works with repository indexes. The indexes are fetched remotely from remote repositories. Some repositories do not provide indexes, or do not keep an updated index, for example, repositories from Bintray, in this case you can ignore the error.

Why are my Maven dependencies not imported correctly IntelliJ?

Maven dependencies imported incorrectly If for some reason the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it.

How to update Maven repository in Eclipse?

Update Maven repositories 1 In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Build Tools | Maven | Repositories. ... 2 Select Repositories from options on the left. 3 On the Repositories page, click Update to update Maven repositories. 4 After the update is finished, click OK.


1 Answers

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.

like image 100
Ivaylo D. Ivanov Avatar answered Sep 23 '22 03:09

Ivaylo D. Ivanov