【问题标题】:IntelliJ Maven error: Repository is non-nexus repo, or is not indexedIntelliJ Maven 错误:存储库是非关联存储库,或未编入索引
【发布时间】:2021-11-20 16:36:23
【问题描述】:

你好,

我在 sonatype 存储库中收到此错误。我很确定我在 pom.xml 中正确设置了它:

<repository>
    <id>OSS Sonatype</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>

我已经尝试过使缓存失效、重新安装整个 IDE、删除 .m2 文件夹或单击找到的每个重新加载按钮。没有什么是成功的。这里有什么问题?

注意:https://s01.oss.sonatype.org/content/repositories/snapshots/ 存储库也不起作用。

【问题讨论】:

  • 这个通知意味着你通过 URL 指定的这个仓库没有索引文件。所以它不能被索引。

标签: java maven intellij-idea build sonatype


【解决方案1】:

我没有在我的 pom.xml 中设置 Nexus。

正确的做法是将settings.xml 添加到您的.m2 文件夹中

【讨论】:

    猜你喜欢
    • 2016-02-16
    • 2014-11-22
    • 2015-11-09
    • 1970-01-01
    • 2016-05-05
    • 1970-01-01
    • 2019-10-11
    • 2011-12-30
    • 2016-10-08
    相关资源
    最近更新 更多