IntelliJ 更新 maven repo 时出错:Repository is non-nexus or does not indexed

Error in IntelliJ to update maven repo: Repository is non-nexus or does not indexed

我不确定我是否理解这个错误指的是什么。

知道如何解决这个问题吗?

谢谢。

这就是最终对我有用的方法:

// delete .m2 folder and then try following replace below
http://repo1.maven.org/maven2 -> https://repo1.maven.org/maven2/
http://oss.sonatype.org/content/repositories/snapshots -> https://oss.sonatype.org/content/repositories/releases/