【问题标题】:Where does "play dependencies" come from?“玩依赖”从何而来?
【发布时间】:2014-12-19 17:10:39
【问题描述】:

在另一个问题Why is Eclipse not able to resolve Guice import in Play 2.2.x application?我了解了play dependencies命令。

[play-new-app] $ dependencies
[info] :: delivering :: play-new-app#play-new-app_2.11;1.0-SNAPSHOT :: 1.0-SNAPSHOT :: integration :: Thu Oct 23 23:56:30 CEST 2014
[info]  delivering ivy file to /Users/jacek/sandbox/play-new-app/target/scala-2.11/ivy-1.0-SNAPSHOT.xml

Here are the resolved dependencies of your application:

+------------------------------------------------------------+------------------------------------------------------------+--------------------------------------------+
| Module                                                     | Required by                                                | Note                                       |
+------------------------------------------------------------+------------------------------------------------------------+--------------------------------------------+
| com.typesafe.play:play-ws_2.11:2.3.5                       | play-new-app:play-new-app_2.11:1.0-SNAPSHOT                | As play-ws_2.11-2.3.5.jar                  |
...

我似乎无法在 sbt/activator 会话中通过 helpinspect 对其进行检查。

[play-new-app] $ inspect dependencies
[error] Not a valid project ID: dependencies
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: dependencies (similar: ivy-dependencies, all-dependencies, rpm-dependencies)
[error] inspect dependencies
[error]                     ^

命令从何而来?是否支持(因为命令的最后一个跟踪位于 Play 1.2.1's documentation 中)?我在哪里可以找到最新版本 2.3.5 的文档中有关该命令的页面?

【问题讨论】:

  • 在 2.3.5 中,我确实看到了dependencyGraph 和 whatDependsOn,它们可能有助于提供类似的信息,但我无法回答主要问题。

标签: playframework-2.3


【解决方案1】:

dependenciesh2-browserlicenseclasspath 一样是一个命令。它们都在 PlayCommandsdependencies 中定义,并可通过 Play 插件用于任何 Play 项目。

inspecthelp 似乎不适用于 sbt 中的命令。

【讨论】:

  • 所以要在我的项目中使用...我需要做什么?启动激活器和键入的依赖项不是有效的命令
  • 你是如何创建这个项目的?你选择了什么模板? play-scala? project/plugins.sbt 持有什么?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-12-04
  • 1970-01-01
  • 2016-08-09
  • 2014-09-26
  • 1970-01-01
  • 2017-10-25
  • 2014-09-30
相关资源
最近更新 更多