SBT程序集:不是有效的命令程序集

时间:2017-03-11 11:07:03

标签: java sbt sbt-assembly

我想从XSL Transform项目制作一个jar文件。如果这样做没有错,我需要sbt-assembly插件。

因此基于我创建的自述文件并添加到:

@ubuntu:~/scripts/XSL-tester$cat /project/assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
之后我尝试运行sbt assembly:

    @ubuntu:~/scripts/XSL-tester$ sbt assembly
[info] Loading global plugins from /home/x/.sbt/0.13/plugins
[info] Updating {file:/home/x/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.10/sbt_0.13/0.11.2/jars/sbt-assembly.jar ...
[info]  [SUCCESSFUL ] com.eed3si9n#sbt-assembly;0.11.2!sbt-assembly.jar (2101ms)
[info] Done updating.
[info] Loading project definition from /home/x/scripts/XSL-tester/project
[info] Set current project to test (in build file:/home/x/scripts/XSL-tester/)
[error] Not a valid command: assembly
[error] Not a valid project ID: assembly
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: assembly
[error] assembly
[error]

其他人说它需要添加到:

@ubuntu:~/scripts/XSL-tester$ cat /home/x/.sbt/0.13/plugins/plugins.sbt 
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")

也是......但没有帮助。

sbt version:

@ubuntu:~/scripts/XSL-tester$ sbt sbtVersion
[info] Loading global plugins from /home/x/.sbt/0.13/plugins
[info] Loading project definition from /home/x/scripts/XSL-tester/project
[info] Set current project to test (in build file:/home/x/scripts/XSL-tester/)
[info] 0.13.0

0 个答案:

没有答案