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

安装插件sbt 1.0 sbt-idea 1.6.0时出错

丘飞
2023-03-14

我需要一些关于这些的帮助,我克隆了这个存储库https://github.com/oermolaev/simple-scala-rest-example,但是当我运行sbt时,我得到了这样的错误:有趣的是,我无法运行,也许有些存储库已经过时了...如果你能帮助我,我将非常高兴

解析器++=Seq(“Sonatype Snapshots”(“http://oss.sonatype.org/content/repositories/snapshots/”),“Sonatype Releases”(“https://oss.sonatype.org/content/repositories/releases/”)

addSbtPlugin(“com.github.mpeltonen”%“sbt-idea”%“1.6.0”)

addSbtPlugin(“com.eed3si9n”%“sbt-assembly”%“0.9.0”)

 Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from C:\workspace\simple-scala-rest-example\project
[info] Updating {file:/C:/workspace/simple-scala-rest-example/project/}simple-scala-rest-example-build...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.github.mpeltonen#sbt-idea;1.6.0: Resolution failed several times for dependency: com.github.mpeltonen#sbt-idea;1.6.0 {compile=[default(compile)]}::
[warn]  1
[warn]  1
[warn]  1
[warn]  1
[warn]  1
[warn]  :: com.eed3si9n#sbt-assembly;0.9.0: Resolution failed several times for dependency: com.eed3si9n#sbt-assembly;0.9.0 {compile=[default(compile)]}::
[warn]  1
[warn]  1
[warn]  1
[warn]  1
[warn]  1
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]          com.github.mpeltonen:sbt-idea:1.6.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn]          com.eed3si9n:sbt-assembly:0.9.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]          com.github.mpeltonen:sbt-idea:1.6.0 (scalaVersion=2.12, sbtVersion=1.0) (C:\workspace\simple-scala-rest-example\project\plugins.sbt#L6-7)
[warn]            +- default:simple-scala-rest-example-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[warn]          com.eed3si9n:sbt-assembly:0.9.0 (scalaVersion=2.12, sbtVersion=1.0) (C:\workspace\simple-scala-rest-example\project\plugins.sbt#L8-9)
[warn]            +- default:simple-scala-rest-example-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: Resolution failed several times for dependency: com.github.mpeltonen#sbt-idea;1.6.0 {compile=[default(compile)]}::
[error]         1
[error]         1
[error]         1
[error]         1
[error]         1
[error]
[error] unresolved dependency: com.eed3si9n#sbt-assembly;0.9.0: Resolution failed several times for dependency: com.eed3si9n#sbt-assembly;0.9.0 {compile=[default(compile)]}::
[error]         1
[error]         1
[error]         1
[error]         1
[error]         1
[error]
[error]         at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error]         at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
[error]         at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:229)
[error]         at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:190)
[error]         at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error]         at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error]         at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error]         at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error]         at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error]         at xsbt.boot.Using$.withResource(Using.scala:10)
[error]         at xsbt.boot.Using$.apply(Using.scala:9)
[error]         at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error]         at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error]         at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error]         at xsbt.boot.Locks$.apply(Locks.scala:28)
[error]         at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error]         at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:185)
[error]         at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:182)
[error]         at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:228)
[error]         at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:190)
[error]         at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error]         at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error]         at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:38)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:91)
[error]         at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:104)
[error]         at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:104)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:87)
[error]         at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error]         at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:118)
[error]         at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2353)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error]         at sbt.std.Transform$$anon$4.work(System.scala:64)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]         at sbt.Execute.work(Execute.scala:266)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error]         at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
[error]         at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[error]         at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[error]         at java.base/java.lang.Thread.run(Unknown Source)
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? [error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: Resolution failed several times for dependency: com.github.mpeltonen#sbt-idea;1.6.0 {compile=[default(compile)]}::
[error]         1
[error]         1
[error]         1
[error]         1
[error]         1
[error]
[error] unresolved dependency: com.eed3si9n#sbt-assembly;0.9.0: Resolution failed several times for dependency: com.eed3si9n#sbt-assembly;0.9.0 {compile=[default(compile)]}::
[error]         1
[error]         1
[error]         1
[error]         1
[error]         1

我需要帮助安装这样的插件在这里。谢谢

ps为什么在这里问问题那么难,它花了20多分钟才按下发布按钮!冒头

共有1个答案

微生毅
2023-03-14

我解释了我在构建属性中将sbt.version改为0.13.7的做法。我的机器是在Java9上,从Oracle归档下载了很好的旧JDK1.8并安装了。git在project插件上克隆sbt到1.6.0

然后跑了

谢谢

 类似资料:
  • http://eclipse-cs.sf.net/update/ 我在谷歌上搜索了很多,但没有找到一个合适的解决方案。请帮帮忙。提前致谢

  • 在按照此处所述签署eclipse插件之后 http://www.ibm.com/developerworks/opensource/library/os-eclipse-plugin-sigs/index.html 我得到这个错误,而安装插件。 收集要安装的项目时出错会话上下文为:(profile=SGXXProfile,phase=org.eclipse.equinox.internal.p2.

  • 在docker下的laravel 6项目中,我切换到一个分支,并对其他开发人员的更新进行git pull,但运行composer update时出错: 在composer.lock中我找到了 和: 在composer.json中,我看到: > 我试图安装composer插件api。但我不确定这是一个正确的决定吗? root@f32a029eae89:/app#作曲家需要作曲家插件api使用版本^1

  • 在Eclipse中安装TestNG插件(6.14.3)时,我收到以下错误。 缺少要求:TestNG Eclipse Support 6.14.3.201902250526(org.TestNG.Eclipse 6.14.3.201902250526)需要“bundle org.Eclipse.jdt.launting 3.10.0”,但找不到,无法满足依赖项:from:TestNG 6.14.3.

  • 安装 body 解析插件 koa 仅仅只提供最简单的功能,而不提供请求的body解析,所以我们需要一个解析body的插件。 所有的插件我们都可以在这里找到。 npm install koa-better-body -S 我们自己来写代码提示文件,在 node_modules/@types 目录下面新建 koa-better-body 文件夹,再在里面新建 index.d.ts。 我为什么要把这个文

  • Ember拥有丰富的插件生态系统,可轻松添加到项目中。插件可以为项目提供广泛的功能,通常可以节省时间并让您专注于项目。 浏览插件,请访问Ember Observer网站。它列出并分类了已经发布到NPM的Ember插件,并根据各种标准为他们分配了一个分数。 对于超级租赁,我们将利用两个插件:ember-cli-tutorial-style和ember-cli-mirage。 ember-cli-tu