gpt4 book ai didi

java - Play Framework : Cannot find the install command

转载 作者:行者123 更新时间:2023-11-29 05:39:20 25 4
gpt4 key购买 nike

我正在尝试为 play framework 2.1.1 安装 maven 模块,但我无法弄清楚为什么“install”命令不可用:

来自一个项目:

play install maven

[info] Loading project definition from C:\someproject
[info] Set current project to SomeProject(in build file:/C:\someproject)
[error] Not a valid command: install (similar: initialize, inspect, shell)
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: install (similar: initialize, dist, stage)
[error] install
[error] ^

从任何目录:

play install maven
_ _
_ __ | | __ _ _ _| |
| '_ \| |/ _' | || |_|
| __/|_|\____|\__ (_)
|_| |__/

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


This is not a play application!

Use `play new` to create a new Play application in the current directory,
or go to an existing application and launch the development console using `play`
.

You can also browse the complete documentation at http://www.playframework.org.

最佳答案

install 命令仅适用于 Play 1.x,module directory 中列出的模块也是如此。 .有一些modules for 2.1.1 .

要在 Play 2.x 项目中安装模块,您必须将它们作为依赖项添加到 project/Build.scala 中。该模块的自述文件应该告诉您如何运行它。

关于java - Play Framework : Cannot find the install command,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18255239/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com