IntelliJ中不存在资源nexus-maven-repository-index.properties
在IntelliJ下试用Grails 3时,我发现了以下警告:IntelliJ中不存在资源nexus-maven-repository-index.properties,maven,intellij-idea,repository,Maven,Intellij Idea,Repository,在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
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
我想知道,这是什么意思?如果存储库被标记为“远程”,那么为什么问题是缺少一些(本地?)文件
更新
我认为这实际上与Grails无关
如何了解IntelliJ中更新按钮上的索引Maven存储库窗口中发生的错误的更多详细信息
弹出消息说
Resource nexus-maven-repository-index.properties在IntelliJ中不存在
您可以尝试使用grails/repo和grails/plugins代替grails/core
例如,在build.gradle中:
repositories {
mavenLocal()
maven { url 'http://repo.grails.org/grails/repo' }
maven { url 'http://repo.grails.org/grails/plugins' }
}
我使用Grails 3.0.9、JVM版本1.8.0_45、ApacheMaven 3.3.9和Gradle 2.3在IntelliJ Community 15上进行了测试。对我来说,解决方案是删除文件夹~/.m2/存储库。这使得Maven能够正确地重新索引所有内容
失败的试验,可能对其他人有效:
- 构建、执行、部署→ 构建工具→ 专家→ 存储库:选择存储库并单击更新
- 构建、执行、部署→ 构建工具→ Maven:给JVM更多内存
- 删除文件夹~/.IntelliJIdea2016.3/system/caches
- 如果您正在使用自定义存储库
- 它是Nexus3.x
您很可能忘记设置发布maven存储库索引的任务
通过浏览器登录。
转到管理/系统/任务/创建任务/创建发布Maven索引任务
设置为每小时发布一次。完成。对于Artifactory用户,同样的错误也会发生。三亚的暗示解决了。确保包含本地存储库。
在此之后,回购开始运作:
我在新安装后(从Snap ubuntu)出现了错误的索引
通过更改MAVEN主路径,可以解决此问题
我已从“捆绑”切换到“/usr/share/maven”
上述解决方案均未解决我的问题我在2019.1版中遇到此问题…设置任务后是否有办法验证是否创建了索引?验证是否为您的存储库创建了索引:
http://10.100.254.13:8081/service/rest/repository/browse/maven-public/.index/http://10.100.254.13:8081/service/rest/repository/browse/maven-快照/.index/http://10.100.254.13:8081/service/rest/repository/browse/maven-releases/.index/
我曾遇到过这个问题,但过了一段时间,事情在2019.1和.2开始起作用。为什么我必须在intellij+maven集成中使用nexus?先生,您是救世主!它就像一个符咒!我在管理、服务、Maven Indexer下找到了它。我必须启用Maven索引器,然后将存储库添加到“包含的存储库”,然后单击“保存”,然后单击“立即运行索引”。由于没有包含存储库,因此尝试在不保存索引之前运行索引。