Unindexed remote maven repositories in IntelliJ IDEA 14

前端 未结 7 1974
我寻月下人不归
我寻月下人不归 2020-12-30 19:22

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

Unindexed remote maven repositories found.

相关标签:
7条回答
  • 2020-12-30 19:38

    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.

    0 讨论(0)
  • 2020-12-30 19:38

    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
    
    0 讨论(0)
  • 2020-12-30 19:42

    Problem caused after idea update. Maven settings resets to bundled version. Solution for that problem is in setting of maven version to latest version.

    0 讨论(0)
  • 2020-12-30 19:58

    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/")
    }
    
    0 讨论(0)
  • 2020-12-30 20:00

    Changing mavencentral() to jcenter() fixed this problem for me using IntelliJ IDEA 2017.1.

    0 讨论(0)
  • 2020-12-30 20:02

    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.

    0 讨论(0)
提交回复
热议问题