【问题标题】:Grails Getting Started package helloworldGrails 入门包 helloworld
【发布时间】:2016-01-24 11:18:56
【问题描述】:

我试图在 W8.1 上运行“package helloworld”,我得到:

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)

我们将不胜感激。

【问题讨论】:

  • 您到底想做什么?如果您想产生战争,请尝试grails> assemble,当您在 grails 控制台中时,借助选项卡您可以查看所有可用命令。

标签: grails grails-3.0


【解决方案1】:

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

我在 Getting Started 中的 helloworld 示例中进行操作,我认为我应该在 Grails 交互式控制台中添加一个操作。我需要做的是编辑在上一步中创建的控制器模板脚本。我的错,对此感到抱歉。

谢谢大家。

【讨论】:

    猜你喜欢
    • 2012-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多