为什么 Typesafe 激活器命令“激活器依赖项”不起作用?

Why is Typesafe activator command `activator dependencies` not working?

我使用 Typesafe Activator 创建了一个新项目。在命令提示符下,我执行命令 activator dependencies。这导致:

E:\sample_app>activator dependencies
[info] Loading project definition from E:\sample_app\project
[info] Updating {file:/E:/sample_app/project/}sample_app-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to sample_app (in build file:/E:/sample_app/)
[error] Not a valid command: dependencies
[error] Not a valid project ID: dependencies
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: dependencies (similar: all-dependencies, rpm-dependencies, allDependencies)
[error] dependencies
[error]             ^      

使用的版本

分析

首先,dependencies 是无效的 sbt 命令。 (所有 sbt 命令也可以在 activator 中使用。)

解决方案

或者你的意思是 libraryDependencies(这是一个 sbt 设置)所以调用

activator libraryDependencies

或者您想查看依赖项的类路径(一个 sbt 任务,因此您需要使用 show 来查看 sbt 任务的输出),例如

activator "show dependencyClasspath"

编辑于 2015-09-30,3:50am

如果从控制台调用,组合命令必须放在引号中。这里:"show dependencyClasspath"