【发布时间】: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 会话中通过 help 或 inspect 对其进行检查。
[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,它们可能有助于提供类似的信息,但我无法回答主要问题。