找不到Grails独立插件 [英] Grails Standalone Plugin Not Found

查看:85
本文介绍了找不到Grails独立插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试在新的grails项目中使用 grails独立插件,但我可以使其无法正常工作.

I'm trying to use the grails standalone plugin with a new grails project but I can't get it to work.

我已将其作为插件依赖项添加到我的BuildConfig.groovy文件中:

I've added it as a plugin dependency in my BuildConfig.groovy file:

plugins {
    compile: ":standalone:1.2.3"
}

但是尝试运行grails prod build-standalone时出现以下错误:

But I get the following error when I attempt to run grails prod build-standalone:

Script 'BuildStandalone' not found, did you mean:
1) InstallDependency
2) Stats
3) InstallJQuery
4) CreateMultiProjectBuild_
5) TestApp

我尝试运行grails cleangrails clean-allgrails refresh-dependenciesgrails compile,如在

I tried running grails clean, grails clean-all, grails refresh-dependencies, and grails compile as answered in this question, but nothing seems to help. I would expect refresh-dependencies to either download the necessary artifacts or fail trying.

我在做什么错了?

这是我的环境:

  • Mac OS X 10.9.5
  • JDK 1.8.0_05
  • 与GVM一起安装的Grails v2.4.4

推荐答案

BuildConfig.groovy中编辑依赖项后始终运行grails compile;这将触发依赖关系解析并安装插件,下载jar并将其添加到类路径等.一旦发生这种情况,插件的脚本将解决.

Always run grails compile after editing dependencies in BuildConfig.groovy; this triggers dependency resolution and installs the plugin, downloads the jars and adds them to the classpath etc. Once that happens the plugins' scripts will resolve.

这篇关于找不到Grails独立插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆