我已经下载了 sbt 并解决了代理 maven 存储库错误,我使用 my-maven-proxy-releases 创建了存储库文件:在 ~/.sbt
当我做 sbt about 时,我得到以下详细信息:
"~\.sbt\preloaded\org.scala-sbt\sbt\"1.0.4"\jars\sbt.jar"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[warn] No sbt.version set in project/build.properties, base directory: C:\
[info] Set current project to root (in build file:/C:/)
[info] This is sbt 1.0.4
[info] The current project is {file:/C:/}root 0.1-SNAPSHOT
[info] The current project is built against Scala 2.12.4
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbt.plugins.Giter8TemplatePlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.12.4
现在,我想在 Eclipse 中导入一个项目,然后用 Google 搜索。这是我找到的细节。
1. ~/.sbt/<sbt-version>/plugins/plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")
sbteclipse
2. ~/.sbt/<sbt-version>/plugins/build.sbt
for scala versions and dependencies.
但是我对在哪里创建 build.sbt 和 plugins.sbt 感到困惑,因为我的文件夹结构是这样的:
~/.sbt/1.0
~/.sbt/1.3
我没有看到在 sbt 中显示的 ~/.sbt/1.0.4 。
如果我的理解有误,请指导。