gpt4 book ai didi

grails - 如何安装Grails db-reverse-engineer

转载 作者:行者123 更新时间:2023-12-02 14:30:27 26 4
gpt4 key购买 nike

尝试使用Grails db-reverse-engineer plugin。作为该插件doesn't work with Grails 3,我只是使用Grails的SDKMANinstall older versions来生成模型。首先尝试2.5.2版(仍然与the tutorial不兼容),然后旋转回2.2.5版。以下教程仍然无法安装插件:

$grails create-app reveng-test
| Created Grails Application at /home/user/pnvStuff/grails/reveng-test
$ cd reveng-test
$ grails install-plugin db-reverse-engineer
| Environment set to development.....
| Warning The install-plugin command is deprecated and may be removed from a future version of Grails. Plugin dependencies should be expressed in grails-app/conf/BuildConfig.groovy. See http://grails.org/doc/2.2.x/guide/conf.html#pluginDependencies.
| Error resolving plugin [name:db-reverse-engineer, group:org.grails.plugins, version:latest.integration]. Plugin not found.
| Error Plugin not found for name [db-reverse-engineer] and version [not specified]

我还尝试通过在BuildConfig.groovy的plugins部分中引用它来安装该插件。
runtime ':db-reverse-engineer:0.5.1'

如何安装此插件以生成所需的域类?

最佳答案

Grails 2.x(和1.x)插件现在位于默认不包含在BuildConfig.groovy中的存储库中。您需要将以下Maven存储库添加到您的依赖性解析块中。

grails.project.dependency.resolution = {
repositories {
mavenRepo "http://repo.grails.org/grails/repo/"

...

关于grails - 如何安装Grails db-reverse-engineer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33898396/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com