gpt4 book ai didi

maven - Intellij IDEA 15 : Unindexed remote maven repositories found

转载 作者:行者123 更新时间:2023-12-02 02:17:16 26 4
gpt4 key购买 nike

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

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)

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

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

最佳答案

在 build.gradle 存储库部分中,将 mavencentral() 替换为另一个镜像,如下所示:

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

然后,当您收到“找到未索引的远程 maven 存储库”时,请转到存储库 View 并按更新。应该可以做到这一点

关于maven - Intellij IDEA 15 : Unindexed remote maven repositories found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35052474/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com