IDEA Maven Repositiory Index 错误/ resource nexus-maven-repository-index.properties does not exist

IDEA Maven Repositiory Index 错误/ resource nexus-maven-repository-index.properties does not exist

前言

IDEA中引用依赖的时候,无法自动补全,其实是有原因的,可以打开IDEA的配置选项,如下图所示:
Maven索引位置
你看到的可能跟我不一致,是repo.maven.*之类的,如果Updated那一栏显示是Never,那么你可以点击Update按钮进行仓库索引的更新,repo.maven的更新失败可能是网络太慢了,可进行VPN进行代理,从而解决这个问题;但如果是笔者这种通过nexus私服搭建的个人仓库,点击Update按钮后更新失败了,popupWindow显示: resource nexus-maven-repository-index.properties does not exist,则可按照如下方案进行解决。

解决方案

笔者使用的nexus 仓库为3.x版本,目前基本都是用比较新的版本了。
可在nexus的web端网页进行如下操作:
Go to Administration/System/Tasks/Create Task/Create Publish Maven indexes Task
如下图所示:
创建task
可参考如下配置Task:
Task详情

此方案适用场景:

  • Nexus3.x
  • 使用个人私有仓库

参考

https://stackoverflow.com/questions/34104305/resource-nexus-maven-repository-index-properties-does-not-exist-in-intellij

猜你喜欢

转载自blog.csdn.net/u010165638/article/details/89948308
今日推荐