gpt4 book ai didi

grails - 是否仍然可以在Grails中安装全局插件

转载 作者:行者123 更新时间:2023-12-02 16:02:09 24 4
gpt4 key购买 nike

在早期版本的Grails中,可以安装全局插件,以便默认情况下将为每个应用程序安装该插件。

最新的Grails版本仍然有可能吗?我在文档中看不到任何东西。

最佳答案

我看过您提供的链接。

在Grails 1.3.8中,我们可以使用grails install-plugin命令。

在Grails 2.2.2中,它具有消息

Plugins should be installed by listing them in BuildConfig.groovy with the appropriate scope instead of using install-plugin.



在Grails 2.3.1和2.5.0中,它具有消息

DEPRECATED: The install-plugin command is deprecated

Plugins should be installed by listing them in BuildConfig.groovy with the appropriate scope instead of using install-plugin.



但是在最新的Grails文档命令行部分中,它没有 install-plugin命令。最新文档没有其他命令,例如
install-dependency
install-plugin
install-templates

因此,该命令似乎已从最新的Grails(即3.0.x)中删除。一直建议使用BuildConfig.groovy代替install-plugin。因此,我认为不可能安装全局插件。

我尚未安装Grails 3.0.1来检查命令 install-plugin是否存在,但它可能不在最新的Grails中。

关于grails - 是否仍然可以在Grails中安装全局插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29445243/

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