当前位置: 首页 > 知识库问答 >
问题:

如何安装sbt-eclipse插件?

邵兴怀
2023-03-14

我遵循了sbt文档中关于如何安装sbt-eclipse插件的内容,但在sbt shell中不断出现错误。

scalaVersion := "2.13.1"
name := "hello-world"
organization := "ch.epfl.scala"
version := "1.0"
libraryDependencies += "org.typelevel" %% "cats-core" % "2.0.0"
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0")
sbt:hello-world> eclipse
[error] Expected ';'
[error] Not a valid command: eclipse (similar: client, help, alias)
[error] Not a valid project ID: eclipse
[error] Expected ':'
[error] Not a valid key: eclipse (similar: deliver, licenses, clean)
[error] eclipse
[error]        ^
sbt:hello-world> compile
Nov 09, 2019 2:19:40 PM lmcoursier.internal.shaded.coursier.cache.shaded.org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
[info] Updating
[info] Resolved  dependencies
[warn]
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]          com.typesafe.sbteclipse:sbteclipse-plugin:5.1.0 (sbtVersion=1.0, scalaVersion=2.13)
[warn]
[warn]  Note: Unresolved dependencies path:
[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbteclipse:sbteclipse-plugin;sbtVersion=1.0;scalaVersion=2.13:5.1.0
[error]   Not found
[error]   Not found
[error]   not found: C:\Users\colin\.ivy2\local\com.typesafe.sbteclipse\sbteclipse-plugin\scala_2.13\sbt_1.0\5.1.0\ivys\ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse-plugin_2.13_1.0/5.1.0/sbteclipse-plugin-5.1.0.pom
[error] Total time: 1 s, completed Nov 9, 2019 2:19:41 PM

共有1个答案

葛兴发
2023-03-14

使用插件的最新版本并重新开始。

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")

参见https://github.com/sbt/sbteclipse。

 类似资料:
  • 我正在尝试安装sbt-eclipse,但在运行或时,我不断收到以下错误。 错误 cat~/.sbt/0.13/plugins/plugins.sbt

  • 主要内容:Eclipse 查找和安装插件Eclipse 查找和安装插件 为 Eclipse IDE 提供基础的 Eclipse 平台由插件组成,可使用附加插件进行扩展。 有数百个插件可用。每个插件都为 Eclipse 添加了更多功能。您可以通过搜索 Eclipse Marketplace ( http://marketplace.eclipse.org/ )来找到提供特定功能的插件。例如,您可以找到允许将 eclipse 用作 Pyth

  • 查找和安装插件 Eclipse作为一个集成的IDE开发工具,为我们的软件开发提供了便利,eclipse除了自带的强大功能外,还支持功能丰富的插件。 我们可以通过Eclipse官方市场 (http://marketplace.eclipse.org/)找到并下载我们需要的插件。 例如我们可以查找支持 Python IDE 的插件,如下图所示: 在 Eclipse IDE 中我们也可以通过点击 Hel

  • 手动安装 SBT Unix 将sbt-launch.jar包放到目录 ~/bin中 创建一个运行jar包的脚本 ~/bin/sbt, 脚本内容为: SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" java $SBT_OPTS -jar `dirname $0`/sbt-l

  • 我需要一些关于这些的帮助,我克隆了这个存储库https://github.com/oermolaev/simple-scala-rest-example,但是当我运行sbt时,我得到了这样的错误:有趣的是,我无法运行,也许有些存储库已经过时了...如果你能帮助我,我将非常高兴 解析器++=Seq(“Sonatype Snapshots”(“http://oss.sonatype.org/conte

  • Linux 平台安装 SBT 通过通用的包安装 下载 ZIP 包或 TGZ 包解压 RPM 和 DEB RPM包 DEB包 注意: 请将任何和这两个包相关的问题反馈到sbt-launcher-package项目 issue Gentoo In the official tree there is no ebuild for sbt. But there are ebuilds to merge s