我使用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] ^
使用的版本 :
答案 0 :(得分:2)
首先,dependencies
不是有效的sbt
命令。 (所有sbt
命令也可用于activator
。)
要么是libraryDependencies
(这是sbt设置),请致电
activator libraryDependencies
或者你想看到依赖项的类路径(一个sbt任务,所以你需要使用show
来查看sbt任务的输出),例如
activator "show dependencyClasspath"
如果从控制台调用,则必须将组合命令放入引号中。这里:"show dependencyClasspath"