gpt4 book ai didi

grails - Grails 2.2.1无法识别从BuildConfig.groovy安装了 “release”插件

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

我需要使用2.2.1中的Grails“发布”插件,并将其添加到以下BuildConfig.groovy中的插件中:

    plugins {
runtime ":hibernate:$grailsVersion"
runtime ":jquery:1.8.3"
runtime ":resources:1.1.6"
build ":tomcat:$grailsVersion"
runtime ":database-migration:1.3.2", ":cors:1.1.0"
compile ':cache:1.0.1'
build ":release:2.2.1"
}

我尝试运行Maven部署:
$ grails prod maven-deploy --repository=releases --verbose --non-interactive
| Loading Grails 2.2.1
| Error WARNING: Configurational method [:release:2.2.1] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring..
| Error WARNING: Configurational method [build] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring..
| Running pre-compiled script
| Error Script not found: MavenDeploy

或(从Build更改为BuildConfig.groovy中的编译时):
| Running pre-compiled script
| Error Script not found: MavenDeploy

我尝试列出插件,但发布插件不存在:
$ grails list-plugins --installed
Plug-ins you currently have installed are listed below:
-------------------------------------------------------------
cache 1.0.1 -- Cache Plugin
common-domain 1.2.4 -- Common Domain Plugin
cors 1.1.0 -- CORS Plugin
database-migration 1.3.2 -- Grails Database Migration Plugin
hibernate 2.2.1 -- Hibernate for Grails
jquery 1.8.3 -- JQuery for Grails
resources 1.1.6 -- Resources
tomcat 2.2.1 -- Apache Tomcat plugin for Grails
webxml 1.4.1 -- WebXmlConfig

我使用不推荐使用的install-plugin目标来运行它。
我不知道为什么这不起作用,我想知道是否有人可以对此有所了解。谢谢

最佳答案

确保设置了$ GRAILS_HOME环境变量,并指向文件系统上的正确位置。

关于grails - Grails 2.2.1无法识别从BuildConfig.groovy安装了 “release”插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17305970/

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