2

我从游戏框架开始,在学习模块时卡住了。命令moduleslist-modules都会抛出相同的错误消息(见下文)。也许我的版本需要升级,如果是,请解释一下。欢迎任何帮助。

#错误

    [Cesars-Computer: email-server-play] $ play modules
    [info] Loading project definition from /path-to-play-app/email-server-play/project
    [info] Set current project to email-server-play (in build file:/path-to-play-app/email-server-play/)
    [error] Not a valid command: modules
    [error] Expected '/'
    [error] Expected ':'
    [error] Not a valid key: modules (similar: ivy-module, module-name, module-settings)
    [error] modules
    [error]        ^

    [Cesars-Computer: email-server-play] $ play list-modules
    [info] Loading project definition from /path-to-play-app/email-server-play/project
    [info] Set current project to email-server-play (in build file:/path-to-play-app/email-server-play/)
    [error] Not a valid command: list-modules
    [error] Expected '/'
    [error] Expected ':'
    [error] Not a valid key: list-modules (similar: ivy-module, classifiers-module)
    [error] list-modules
    [error]             ^

播放控制台运行版本是 2.1.1.,但是当我调用版本命令时,奇怪地显示版本 1.0-SNAPSHOT。

# 一些附加信息

    [Cesars-Computer: email-server-play] $ play
    [info] Loading project definition from /path-to-play-app/email-server-play/project
    [info] Set current project to email-server-play (in build file:/path-to-play-app/email-server-play/)
           _            _
     _ __ | | __ _ _  _| |
    | '_ \| |/ _' | || |_|
    |  __/|_|\____|\__ (_)
    |_|            |__/

    play! 2.1.1 (using Java 1.7.0_11 and Scala 2.10.0), http://www.playframework.org

    > Type "help play" or "license" for more information.
    > Type "exit" or use Ctrl+D to leave this console.


    [email-server-play] $ version
    [info] 1.0-SNAPSHOT 
4

1 回答 1

1

我认为您需要使用projects列出所有模块。

要处理给定的模块,请运行

project my_module

这是文档的链接: http ://www.playframework.com/documentation/2.0/SBTSubProjects

于 2013-06-24T19:47:36.503 回答