当前位置:  开发笔记 > 开发工具 > 正文

IntelliJ中不存在资源nexus-maven-repository-index.properties

如何解决《IntelliJ中不存在资源nexus-maven-repository-index.properties》经验,为你挑选了2个好方法。

在IntelliJ下尝试使用Grails 3时,我发现了以下警告:

 Unindexed remote maven repositories found. Disable...
 The following repositories used in your gradle projects were not indexed yet: 
 https://repo.grails.org/grails/core
 If you want to use dependency completion for these repositories artifacts,
 Open Repositories List, select required repositories and press "Update" button (show balloon)

如果我正在尝试解决问题,我会收到下一个错误:

FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist in IntelliJ

在此输入图像描述

我想知道,这是什么意思?如果存储库被标记为"远程",那么为什么问题是缺少某些(本地?)文件?

UPDATE

我认为这实际上与Grails无关.

如何知道有关错误的更多详细信息,发生Indexed Maven Repositories在IntelliJ 中的Window Update按钮上?

弹出消息说

Resource nexus-maven-repository-index.properties does not exist in IntelliJ

在此输入图像描述



1> sanya..:

如果您正在使用自定义存储库

它是Nexus 3.x

您忘记设置任务以发布maven存储库索引的可能性很高.

通过浏览器登录.转至管理/系统/任务/创建任务/创建发布Maven索引任务

将其设置为每小时发布一次.完成.



2> John Koumare..:

对我来说,解决方案是删除文件夹〜/ .m2 / repository。这使得Maven可以正确地重新索引所有内容。

试用失败,可能对其他人有用:

构建,执行,部署?构建工具?Maven?存储库:选择存储库,然后单击更新。

构建,执行,部署?构建工具?Maven:提供更多内存的JVM

删除文件夹〜/ .IntelliJIdea2016.3 / system / caches

推荐阅读
mobiledu2402851377
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有