I\'ve imported an existing Gradle project to IntelliJ IDEA. I keep getting a notification:
Unindexed remote maven repositories found.
Similar to @osexp2003, I deleted my repository
folder under .m2
and restart intellij.
IntelliJ -> Preferences -> Build, Execution, Deployment -> Repositories -> selected http://repo1.maven.org/maven2
and clicked on update
in the dialog.
I faced same problem, solved by it changing maven home in IntelliJ. In IntelliJ go to:
File-> Setting-> Build, Execution, Deployment-> Build Tools->Maven
Change Maven Home Directory from bundled to local installed. for me the option available was:
/usr/share/maven
Problem caused after idea update. Maven settings resets to bundled version. Solution for that problem is in setting of maven version to latest version.
I had the exact same problem but the other answers didn't help in anyway.
The problem was the mavenCentral()
commands in my build.gradle
.
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}
The solution was to replace mavenCentral()
with the following lines:
maven {
url("https://plugins.gradle.org/m2/")
}
Changing mavencentral()
to jcenter()
fixed this problem for me using IntelliJ IDEA 2017.1.
I have same problem. My experience is deleting ~/.gradle dir will work fine, no more warning again.
I think this is because the ~/.gradle dir is first used by my Eclipse(Spring Tool Suite), so the files inside there are not registered in IDEA's internal index db, so cause the warning.
Here is what i'v done:
First, i chose "Open Repositories List", then click update in the dialog, then it will take too long time to complete the action. Then i checked the ~/.gradle, it's very big, it even contains android sdk related jars, this is why it's so slow.
So, i deleted ~/.gradle, then reopen IDEA, no more warning again. I checked ~/.gradle again, it only contains my dependency jars.