我正在开发一个 grails 项目版本 4
每当我运行项目或执行 gradle build 或 clean
我收到以下错误
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find org.grails.plugins:database-migration:3.1.0.BUILD-SNAPSHOT.
Searched in the following locations:
- https://repo.grails.org/grails/core/org/grails/plugins/database-migration/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
- https://repo.grails.org/grails/core/org/grails/plugins/database-migration/3.1.0.BUILD-SNAPSHOT/database-migration-3.1.0.BUILD-SNAPSHOT.pom
- https://repo.grails.org/grails/core/org/grails/plugins/database-migration/3.1.0.BUILD-SNAPSHOT/database-migration-3.1.0.BUILD-SNAPSHOT.jar
Required by:
project :
最佳答案
似乎所有的插件库现在都返回 404,示例:
- https://repo.grails.org/grails/core/org/grails/plugins/database-migration/3.1.0.BUILD-SNAPSHOT/database-migration-3.1.0.BUILD-SNAPSHOT.pom
- https://repo.grails.org/grails/core/gradle/plugin/com/gorylenko/gradle-git-properties/gradle-git-properties/2.2.4/gradle-git-properties-2.2.4.pom
不确定发生了什么,但是如果您使用的是 grails 3+,您可以尝试将 https://grails.jfrog.io/grails/core
添加到您的存储库闭包中(作为临时修复),像这样:
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "https://grails.jfrog.io/grails/core"}
}
虽然我想知道官方 repo 发生了什么,也许从 grails 的人那里听到这件事。 我希望他们至少尽快解决它,因为用我们的旧 grails 2 应用程序修复它并不容易。
关于gradle - grails4 数据库迁移插件报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67867160/