我需要一些帮助,我克隆了这个存储库 https://github.com/oermolaev/simple-scala-rest-example 但是当我运行sbt时,我遇到了这样的错误: 有趣的我无法运行也许某些存储库已经过时...如果你能帮助我,我会很高兴
解析器++ = Seq( " Sonatype快照" at" http://oss.sonatype.org/content/repositories/snapshots/", " Sonatype发布" at" 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多分钟!科盟
答案 0 :(得分:0)
我解释一下我做了什么 在构建属性中将sbt.version更改为0.13.7。 我的机器在java 9上,从Oracle存档下载了旧的jdk1.8并安装完毕。 git clone 关于项目的问题 插件到1.6.0
然后跑
感谢