Dim*_*ims 24 repository intellij-idea maven
在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)
Run Code Online (Sandbox Code Playgroud)
如果我正在尝试解决问题,我会收到下一个错误:
FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist in IntelliJ
Run Code Online (Sandbox Code Playgroud)
我想知道,这是什么意思?如果存储库被标记为"远程",那么为什么问题是缺少某些(本地?)文件?
UPDATE
我认为这实际上与Grails无关.
如何知道有关错误的更多详细信息,发生Indexed Maven Repositories在IntelliJ 中的Window Update按钮上?
弹出消息说
Resource nexus-maven-repository-index.properties does not exist in IntelliJ
san*_*nya 13
您忘记设置任务以发布maven存储库索引的可能性很高.
通过浏览器登录.转至管理/系统/任务/创建任务/创建发布Maven索引任务
将其设置为每小时发布一次.完成.
对我来说,解决方案是删除文件夹〜/ .m2 / repository。这使得Maven可以正确地重新索引所有内容。
试用失败,可能对其他人有用:
小智 3
您可以尝试使用 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' }
}
Run Code Online (Sandbox Code Playgroud)
我在 IntelliJ Community 15 上使用 Grails 3.0.9、JVM 版本:1.8.0_45、Apache Maven 3.3.9 和 Gradle 2.3 进行了测试。
| 归档时间: |
|
| 查看次数: |
17388 次 |
| 最近记录: |