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

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值