Grails Standalone Plugin Not Found

*爱你&永不变心* 提交于 2019-12-11 07:40:13

问题


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

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

plugins {
    compile: ":standalone:1.2.3"
}

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

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.

What am I doing wrong?

Here is my environment:

  • Mac OS X 10.9.5
  • JDK 1.8.0_05
  • Grails v2.4.4 installed with GVM

回答1:


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.



来源:https://stackoverflow.com/questions/26880811/grails-standalone-plugin-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!