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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With