Grails:找不到错误命令dbm生成gorm更改日志

Grails:找不到错误命令dbm生成gorm更改日志,grails,Grails,我正在使用Grails 3.1.6,同时使用数据库迁移(Game.groovy是我的模型): 它表明: | Error Command not found dbm-generate-gorm-changelog-add Did you mean: generate-all or generate-views or generate-controller? 注意:我有名为“数据库迁移”的可用插件。 这里需要帮助 我手动添加了 编译“org.grails.plugins:数据库迁移:2.0.0.R

我正在使用Grails 3.1.6,同时使用数据库迁移(Game.groovy是我的模型):

它表明:

| Error Command not found dbm-generate-gorm-changelog-add
Did you mean: generate-all or generate-views or generate-controller?
注意:我有名为“数据库迁移”的可用插件。

这里需要帮助

我手动添加了

编译“org.grails.plugins:数据库迁移:2.0.0.RC4”

在中编译'org.liquibase:liquibase核心:3.3.2'
build.gradle
文件

在主要部分还添加了
classpath'org.grails.plugins:database migration:2.0.0.RC4'


这就是问题的解决方案。

grails dbm generate gorm changelog createGame.groovy和您的IDE(eclipse或Intellij)尝试使用命令刷新依赖项:grails refresh dependencies它说的是“|错误命令未找到刷新依赖项您的意思是:依赖项报告还是打开或测试?”哦,很抱歉,对于Grails3.x来说,这肯定不是同一个命令(我使用的是Grails2.4.5,没有gradle,只有maven)
| Error Command not found dbm-generate-gorm-changelog-add
Did you mean: generate-all or generate-views or generate-controller?