【问题标题】:Grails 4 https://repo.grails.org/grails/core no longer able to download dependenciesGrails 4 https://repo.grails.org/grails/core 不再能够下载依赖项
【发布时间】:2021-08-25 10:12:08
【问题描述】:

我们已经使用 Grails 4.0.0 一年多了,从昨天开始,我们现在无法使用以下构建配置下载依赖项。

buildscript {
repositories {
    maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
    classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}

}

我们得到以下错误。看起来https://repo.grails.org/grails/core 不再是下载依赖项的正确 URL 存储库。有谁知道正确的 URL 或如何解决?尝试过http://repo.grails.org/grails/plugins/ 并尝试了不同类型的东西,但没有奏效。提前感谢您的帮助!

A problem occurred configuring root project 'IronDataMobile_2.11.9'.

无法解析配置“:classpath”的所有工件。 找不到 org.grails:grails-gradle-plugin:4.0.0。 在以下位置搜索: - https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/4.0.0/grails-gradle-plugin-4.0.0.pom - https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/4.0.0/grails-gradle-plugin-4.0.0.jar 要求: 项目:

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。

【问题讨论】:

标签: gradle grails build.gradle grails-plugin grails-4


【解决方案1】:

列出的存储库中不存在“grails-core”存储库:https://repo.grails.org/ui/repos/tree/General/

但是,“核心”确实存在,其中包括 org.grails:grails-gradle-plugin

所以更新存储库:

buildscript {
    repositories {
        maven { url "https://repo.grails.org/artifactory/core/" }
    }
}

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2016-03-13
  • 2018-01-30
  • 1970-01-01
  • 1970-01-01
  • 2013-03-22
  • 2011-10-19
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多