Intellij IDEA 15:找到未编入索引的远程maven存储库 [英] Intellij IDEA 15: Unindexed remote maven repositories found

查看:1617
本文介绍了Intellij IDEA 15:找到未编入索引的远程maven存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IntelliJ IDEA 15.0.3中创建了一个Java Gradle项目。但是我收到以下错误。

 找到未编入索引的远程maven存储库。禁用... 
您的gradle项目中使用的以下存储库尚未编入索引:
http://repo1.maven.org/maven2
如果要为这些存储库使用依赖项完成artifacts,
打开存储库列表,选择所需的存储库并按下更新按钮(显示气球)



<当我打开存储库列表并单击更新时,出现以下错误:

  java.lang.RuntimeException:java。 io.IOException:传输nexus-maven-repository-index.properties失败


解决方案<在你的build.gradle仓库部分用另一个镜像替换mavencentral(),就像这样:

  repositories {
maven {
urlhttp://uk.maven.org/maven2
}
}

然后当你得到Unindexed remote maven repositories found去存储ories视图和新闻更新。这应该做到这一点


I created a Java Gradle project in IntelliJ IDEA 15.0.3. But I am getting the following error.

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)

When I open the repositories list and click update, I am getting the following error

java.lang.RuntimeException: java.io.IOException: Transfer for nexus-maven-repository-index.properties failed

解决方案

In your build.gradle repositories section replace mavencentral() with another mirror, like so:

repositories {
    maven {
        url "http://uk.maven.org/maven2"
    }
}

then when you get the "Unindexed remote maven repositories found" go to the repositories view and press update. that should do it

这篇关于Intellij IDEA 15:找到未编入索引的远程maven存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆