在另一个问题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文档中命令的页面?
答案 0 :(得分:0)
dependencies
是一个命令h2-browser
,license
和classpath
。它们都在PlayCommands中使用dependencies定义,并可通过Play插件用于任何Play项目。
inspect
和help
似乎无法使用sbt中的命令。