在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
如果您正在使用自定义存储库
它是Nexus 3.x
您忘记设置任务以发布maven存储库索引的可能性很高.
通过浏览器登录.转至管理/系统/任务/创建任务/创建发布Maven索引任务
将其设置为每小时发布一次.完成.
对我来说,解决方案是删除文件夹〜/ .m2 / repository。这使得Maven可以正确地重新索引所有内容。
试用失败,可能对其他人有用:
构建,执行,部署?构建工具?Maven?存储库:选择存储库,然后单击更新。
构建,执行,部署?构建工具?Maven:提供更多内存的JVM
删除文件夹〜/ .IntelliJIdea2016.3 / system / caches