Grails入门包helloworld

时间:2016-01-20 01:17:53

标签: grails grails-3.0

我正在尝试运行"打包helloworld"在W8.1上,我得到:

grails> package helloworld  
| Error Caught exception Could not execute build using Gradle distribution 'http
s://services.gradle.org/distributions/gradle-2.3-bin.zip'.
Problem with provided build arguments: [-helloworld].
Unknown command-line option '-h'.
Either it is not a valid build option or it is not supported in the target Gradl
e version.
Not all of the Gradle command line options are supported build arguments.
Examples of supported build arguments: '--info', '-u', '-p'.
Examples of unsupported build options: '--daemon', '-?', '-v'.
Please find more information in the javadoc for the BuildLauncher class. (Use --
stacktrace to see the full trace)

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

nvm,我觉得自己像个白痴。 ; - )

我跟随Getting Started中的helloworld示例,我想我应该在Grails交互式控制台中添加一个动作。我需要做的是编辑在上一步中创建的控制器模板脚本。我很难过,对不起。

谢谢大家。