Mai*_*ein 15 eclipse scala sbt sbteclipse
我有问题顶级使用sbteclipse
我做了什么:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")name:="foo"
Run Code Online (Sandbox Code Playgroud)version := "1.0" scalaVersion := "2.9.2" libraryDependencies += "net.java.dev.jna" % "jna" % "3.4.0"
sbt eclipse但我总是得到以下错误
[error] Not a valid command: eclipse (similar: help, alias)
[error] Not a valid project ID: eclipse
[error] Expected ':'
[error] Not a valid key: eclipse (similar: deliver, licenses, clean)
[error] eclipse
[error] ^
Run Code Online (Sandbox Code Playgroud)
ps:我正在使用Windows.我也在使用sbt 0.12
Iva*_*ith 14
您的全局sbt文件夹位于%USERPROFILE%\.sbt(C:\Users\<username>\.sbt最有可能).所以你的插件应该定义在%USERPROFILE%\.sbt\plugins\plugins.sbt
如果做不到这一点,您可以直接将其添加到项目中.添加文件路径是<project_root>\project\plugins.sbt.如果project目录不存在,则需要创建它.