New to Scala here, I have this .sbt manifest file:
import sbt.Package._
import sbt._
import Docker.autoImport.exposedPorts
scalaVersion := "2.12.6"
enablePlugins(DockerPlugin)
exposedPorts := Seq(8666)
libraryDependencies ++= Vector (
Library.vertx_lang_scala,
Library.vertx_web,
Library.scalaTest % "test",
// Uncomment for clustering
// Library.vertx_hazelcast,
//required to get rid of some warnings emitted by the scala-compile
Library.vertx_codegen
)
packageOptions += ManifestAttributes(
("Main-Verticle", "scala:vertx.scala.myapp.HttpVerticle"))
I run this command:
sbt clean compile
and as with most JVM related tools I get about 1000 lines of output:
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /home/oleg/codes/oresoftware/vertx-scala/project
[info] Updating {file:/home/oleg/codes/oresoftware/vertx-scala/project/}vertx-scala-build...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.14.5: Resolution failed several times for dependency: com.eed3si9n#sbt-assembly;0.14.5 {compile=[default(compile)]}::
[warn] 1
[warn] 1
[warn] 1
[warn] :: com.lucidchart#sbt-scalafmt;1.14: Resolution failed several times for dependency: com.lucidchart#sbt-scalafmt;1.14 {compile=[default(compile)]}::
[warn] 1
[warn] 1
[warn] 1
[warn] :: org.scoverage#sbt-scoverage;1.5.1: Resolution failed several times for dependency: org.scoverage#sbt-scoverage;1.5.1 {compile=[default(compile)]}::
[warn] 1
[warn] 1
[warn] 1
[warn] :: net.virtual-void#sbt-dependency-graph;0.9.0: Resolution failed several times for dependency: net.virtual-void#sbt-dependency-graph;0.9.0 {compile=[default(compile)]}::
[warn] 1
[warn] 1
[warn] 1
[warn] :: se.marcuslonnberg#sbt-docker;1.5.0: Resolution failed several times for dependency: se.marcuslonnberg#sbt-docker;1.5.0 {compile=[default(compile)]}::
[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.eed3si9n:sbt-assembly:0.14.5 (scalaVersion=2.12, sbtVersion=1.0)
[warn] org.scoverage:sbt-scoverage:1.5.1 (scalaVersion=2.12, sbtVersion=1.0)
[warn] com.lucidchart:sbt-scalafmt:1.14 (scalaVersion=2.12, sbtVersion=1.0)
[warn] se.marcuslonnberg:sbt-docker:1.5.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn] net.virtual-void:sbt-dependency-graph:0.9.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.eed3si9n:sbt-assembly:0.14.5 (scalaVersion=2.12, sbtVersion=1.0) (/home/oleg/codes/oresoftware/vertx-scala/project/plugins.sbt#L1-2)
[warn] +- default:vertx-scala-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[warn] org.scoverage:sbt-scoverage:1.5.1 (scalaVersion=2.12, sbtVersion=1.0) (/home/oleg/codes/oresoftware/vertx-scala/project/plugins.sbt#L3-4)
[warn] +- default:vertx-scala-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[warn] com.lucidchart:sbt-scalafmt:1.14 (scalaVersion=2.12, sbtVersion=1.0) (/home/oleg/codes/oresoftware/vertx-scala/project/plugins.sbt#L2-3)
[warn] +- default:vertx-scala-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[warn] se.marcuslonnberg:sbt-docker:1.5.0 (scalaVersion=2.12, sbtVersion=1.0) (/home/oleg/codes/oresoftware/vertx-scala/project/plugins.sbt#L5-6)
[warn] +- default:vertx-scala-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[warn] net.virtual-void:sbt-dependency-graph:0.9.0 (scalaVersion=2.12, sbtVersion=1.0) (/home/oleg/codes/oresoftware/vertx-scala/project/plugins.sbt#L4-5)
[warn] +- default:vertx-scala-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.5: Resolution failed several times for dependency: com.eed3si9n#sbt-assembly;0.14.5 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: com.lucidchart#sbt-scalafmt;1.14: Resolution failed several times for dependency: com.lucidchart#sbt-scalafmt;1.14 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: org.scoverage#sbt-scoverage;1.5.1: Resolution failed several times for dependency: org.scoverage#sbt-scoverage;1.5.1 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: net.virtual-void#sbt-dependency-graph;0.9.0: Resolution failed several times for dependency: net.virtual-void#sbt-dependency-graph;0.9.0 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: se.marcuslonnberg#sbt-docker;1.5.0: Resolution failed several times for dependency: se.marcuslonnberg#sbt-docker;1.5.0 {compile=[default(compile)]}::
[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:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[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:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[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(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] at java.base/java.lang.Thread.run(Thread.java:844)
[error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.5: Resolution failed several times for dependency: com.eed3si9n#sbt-assembly;0.14.5 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: com.lucidchart#sbt-scalafmt;1.14: Resolution failed several times for dependency: com.lucidchart#sbt-scalafmt;1.14 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: org.scoverage#sbt-scoverage;1.5.1: Resolution failed several times for dependency: org.scoverage#sbt-scoverage;1.5.1 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: net.virtual-void#sbt-dependency-graph;0.9.0: Resolution failed several times for dependency: net.virtual-void#sbt-dependency-graph;0.9.0 {compile=[default(compile)]}::
[error] 1
[error] 1
[error] 1
[error]
[error] unresolved dependency: se.marcuslonnberg#sbt-docker;1.5.0: Resolution failed several times for dependency: se.marcuslonnberg#sbt-docker;1.5.0 {compile=[default(compile)]}::
[error] 1
[error] 1
does anyone know why my basic project skeleton which I created via:
sbt new vert-x3/vertx-scala.g8
does not compile?
Update, supposedly what I am missing are some plugins, here is project/plugins.sbt:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.14")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph"% "0.9.0")
addSbtPlugin("se.marcuslonnberg" % "sbt-docker" % "1.5.0")
Related
I have a plugin called MyPlugin which needs to update a value from another plugin. I have thus added that plugin as a dependency based on
Logging from an sbt plugin
Need to provide a SettingKey from a plugin I use in my sbt plugin
However, sbt fails to resolve the dependency fm-sbt-s3-resolver. What is the appropriate way of including the dependency on the project?
I have tried adding it to enablePlugins on MyPlugin's build.sbt as well as adding it to the dependencies like this:
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-sts" % amazonSDKVersion,
"com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.17.0"
)
In MyPlugin.scala:
import fm.sbt.S3ResolverPlugin
object MyPlugin {
override def requires = S3ResolverPlugin
override lazy val globalSettings = Seq(
resolvers += repos
S3ResolverPlugin.autoImport.s3CredentialsProvider := s3CredentialsProviderChain
)
}
I get this error from sbt:
I can find the project on this url on the Maven Central Repo.
module not found: com.frugalmechanic#fm-sbt-s3-resolver;0.17.0
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.frugalmechanic/fm-sbt-s3-resolver/0.17.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.frugalmechanic/fm-sbt-s3-resolver/0.17.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /Users/localuser/.ivy2/local/com.frugalmechanic/fm-sbt-s3-resolver/0.17.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/frugalmechanic/fm-sbt-s3-resolver/0.17.0/fm-sbt-s3-resolver-0.17.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /Users/localuser/.sbt/preloaded/com.frugalmechanic/fm-sbt-s3-resolver/0.17.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////Users/localuser/.sbt/preloaded/com/frugalmechanic/fm-sbt-s3-resolver/0.17.0/fm-sbt-s3-resolver-0.17.0.pom
[warn] ==== sonatype-public: tried
[warn] https://oss.sonatype.org/content/repositories/public/com/frugalmechanic/fm-sbt-s3-resolver/0.17.0/fm-sbt-s3-resolver-0.17.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.frugalmechanic#fm-sbt-s3-resolver;0.17.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.frugalmechanic:fm-sbt-s3-resolver:0.17.0 (/Users/localuser/lendi/core/scala/lendi-plugin/build.sbt#L13-17)
[warn] +- com.mypackage.my-plugin:0.0.6 (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.frugalmechanic#fm-sbt-s3-resolver;0.17.0: not found
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:332)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:208)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:239)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[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:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[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:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[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:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:238)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:193)
[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:45)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:93)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:106)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:106)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:89)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:120)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2561)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.frugalmechanic#fm-sbt-s3-resolver;0.17.0: not found
Looking into frugalmechanic group in maven,
It seems that following pom exists:
fm-sbt-s3-resolver_2.12_1.0/0.17.0/fm-sbt-s3-resolver-0.17.0.pom
^^^^^^^^^ this is scala version, and sbt version.
This path is not a normal one which consists of group id, and artifact id package version since it has _2.12_1.0 in it. This means that plugin is targeted to scala version 2.12, and sbt version 1.0.
Therefore adding plugin as dependency, you have to use Defaults.sbtPluginExtra() and tell that you need specific scala version and plugin version, as below:
libraryDependencies += Defaults.sbtPluginExtra("com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.17.0", "1.0", "2.12")
first argument is package, second argument is sbt version, and third argument is scala version.
You probably want addSbtPlugin so you do not have to worry about the Scala or SBT version (it will be handled automatically):
addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.17.0")
Here is an example of it being used in another SBT plugin: built.sbt for fm-sbt-common
I get the error below when trying to import a scala play project into Intellij.
I created a project using the following seed:
sbt new playframework/play-scala-seed.g8
It compiles and runs fine from the command line.
However, when I tried to import the project into Intellij, the IDE barfed with the following:
Error while importing sbt project:
[info] Loading settings from plugins.sbt,scaffold.sbt ...
[info] Loading project definition from /home/x/IdeaProjects/p3/u/project
[info] Loading settings from build.sbt ...
[info] Set current project to user (in build file:/home/x/IdeaProjects/p3/u/)
[info] sbt server started at 127.0.0.1:4315
[user] $
[info] Defining */*:sbtStructureOptions, */*:sbtStructureOutputFile, *:shellPrompt
[info] The new values will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to user (in build file:/home/x/IdeaProjects/p3/u/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from /home/x/.IdeaIC2017.3/config/plugins/Scala/launcher/sbt-structure-1.0.jar
[info] Reapplying settings...
[info] Set current project to user (in build file:/home/x/IdeaProjects/p3/user/)
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src): (0ms).
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc): (0ms).
[warn] ==== local: tried
[warn] ==== local: tried
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.3/docs/sbt-web-javadoc.jar
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.3.2/srcs/sbt-native-packager-sources.jar
[warn] ==== public: tried
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-javadoc.jar
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-sources.jar
[warn] ==== local-preloaded-ivy: tried
[warn] ==== local-preloaded-ivy: tried
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-web/1.4.3/docs/sbt-web-javadoc.jar
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-native-packager/1.3.2/srcs/sbt-native-packager-sources.jar
[warn] ==== local-preloaded: tried
[warn] ==== local-preloaded: tried
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-javadoc.jar
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-sources.jar
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src): (0ms).
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc): (0ms).
[warn] ==== local: tried
[warn] ==== local: tried
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.3/srcs/sbt-web-sources.jar
[warn] ==== public: tried
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.3.2/docs/sbt-native-packager-javadoc.jar
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-sources.jar
[warn] ==== public: tried
[warn] ==== local-preloaded-ivy: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-javadoc.jar
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-web/1.4.3/srcs/sbt-web-sources.jar
[warn] ==== local-preloaded-ivy: tried
[warn] ==== local-preloaded: tried
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-native-packager/1.3.2/docs/sbt-native-packager-javadoc.jar
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-sources.jar
[warn] ==== local-preloaded: tried
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-javadoc.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src)
[warn] :: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc)
[warn] :: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc)
[warn] :: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src)
[error] download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src)
[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:243)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[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:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[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$.transitiveScratch(LibraryManagement.scala:135)
[error] at sbt.Classpaths$.$anonfun$sbtClassifiersTasks$12(Defaults.scala:2178)
[error] at sbt.Classpaths$$anon$4.call(Defaults.scala:2256)
[error] at sbt.Classpaths$$anon$4.call(Defaults.scala:2249)
[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.Classpaths$.withExcludes(Defaults.scala:2249)
[error] at sbt.Classpaths$.$anonfun$sbtClassifiersTasks$10(Defaults.scala:2165)
[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.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (*:updateSbtClassifiers) sbt.librarymanagement.ResolveException: download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src)
[error] download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src)
[error] Total time: 8 s, completed 26-Jan-2018 22:39:24
[INFO] [01/26/2018 22:39:24.162] [Thread-4] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
Any ideas how to resolve this? Using this version of Intellij on Arch Linux
IntelliJ IDEA Community Edition (intellij-idea-community-edition) 2:2017.3.3-1
Added this and it works now:
resolvers += Resolver.sbtPluginRepo("releases")
As per these instructions:
https://github.com/sbt/sbt-native-packager/pull/1066
https://github.com/sbt/sbt-native-packager/issues/1063
I'm pretty new to scala and I need to sumbit my code to spark. I already tried to compress my code to a .jar trough Eclipse but I've got many dependencies so it doesn't work well.. So after some research I found sbt with the assembly plugin. I installed sbt (default version in apt-get 1.0.4) and made this organisation in my folders :
- RootFolder
-- bin
-- project
--- assembly.sbt
--- build.properties
-- src
--- scala
---- BloomFilter.scala
---- TestCRA.scala
-- target
-- buildt.sbt
So in my build.sbt :
name := "Test"
version := "1.0"
scalaVersion := "2.11.6"
in my assembly.sbt :
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.2")
and in my build.properties :
sbt.version=1.0.4
So when I launch : $ sbt assembly in my RootProject I've got this :
[warn] module not found: com.eed3si9n#sbt-assembly;0.14.2
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.2/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.2/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/quentin/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.2/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.12_1.0/0.14.2/sbt-assembly-0.14.2.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /home/quentin/.sbt/preloaded/com.eed3si9n/sbt-assembly/0.14.2/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/quentin/.sbt/preloaded/com/eed3si9n/sbt-assembly_2.12_1.0/0.14.2/sbt-assembly-0.14.2.pom
[info] downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar ...
[info] [SUCCESSFUL ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar) (500ms)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.14.2: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.eed3si9n:sbt-assembly:0.14.2 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.eed3si9n:sbt-assembly:0.14.2 (scalaVersion=2.12, sbtVersion=1.0) (/home/quentin/Documents/Eclipse/BloomFilters/project/assembly.sbt#L1-2)
[warn] +- default:bloomfilters-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.2: not found
[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:243)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[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:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[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:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[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:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[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:2356)
[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.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.2: not found
Actually I made a lot of research and I'm totally tied. I've read a lot of stackoverflow topics about this and I know there's a lot on this issue but I would'nt write this if I didn't tried them all.
Thank you in advance and sorry for my language.
Quentin
It seems ("sbt-assembly 0.14.5 is cross built to sbt 0.13 and 1.x.") currently only sbt-assembly 0.14.5 and 0.14.6 are supporting sbt 1.x. So you have to update to that:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")
The below is the Log that i can see when building the SBT project.What is the below trying to say !
I'm using IntelliJ IDE and Scala 2.12 and SBT 1.0.3 to build the project.
I have verified the IDE Proxy settings ,its setup and works fine for other Build tools.
Is something missing my SBT installation ?? I tried accessing the failing links in the log and they too are throwing up with errors.
"C:\Program Files\Java\jdk1.8.0_131\bin\java" -agentlib:jdwp=transport=dt_socket,address=12805,suspend=n,server=y -server -Xmx768M -XX:MaxPermSize=384M -Dhttp.proxyHost=THISISMYPROXYADDRESS -Dhttp.proxyPort=8090 -Didea.runid=2017.2 -Dfile.encoding=windows-1252 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.5\lib\idea_rt.jar" -jar C:\Users\USER\.IdeaIC2017.2\config\plugins\Scala\launcher\sbt-launch.jar idea-shell
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; sup
port was removed in 8.0
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Listening for transport dt_socket at address: 12805
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from C:\Users\USER\.sbt\1.0\plugins
[info] Updating {file:/C:/Users/USER/.sbt/1.0/plugins/}global-plugins...
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): typesafe-ivy-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.typesafe.com/typesafe/ivy-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443 (4182ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): sbt-plugin-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443 (4115ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): public: unable to get resource for org/apache/logging/log4j#log4j-core;2.8.1: res=https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443 (1036ms)
[warn] Detected merged artifact: [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): (0ms).
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar
[warn] ==== local: tried
[warn] C:\Users\USER\.ivy2\local\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ==== local-preloaded-ivy: tried
[warn] C:\Users\USER\.sbt\preloaded\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== local-preloaded: tried
[warn] file:/C:/Users/USER/.sbt/preloaded/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.jetbrains#sbt-structure-extractor;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-structure-extractor;2017.2 {compile=[default(compile)]}::
[warn] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[warn] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[warn] public: unable to get resource for org/jetbrains#sbt-structure-extractor;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-structure-extractor_2.12_1.0/2017.2/sbt-structure-extractor-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[warn] :: org.jetbrains#sbt-idea-shell;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-idea-shell;2017.2 {compile=[default(compile)]}::
[warn] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[warn] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[warn] public: unable to get resource for org/jetbrains#sbt-idea-shell;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-idea-shell_2.12_1.0/2017.2/sbt-idea-shell-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] org.jetbrains:sbt-structure-extractor:2017.2 (scalaVersion=2.12, sbtVersion=1.0)
[warn] org.jetbrains:sbt-idea-shell:2017.2 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.jetbrains:sbt-structure-extractor:2017.2 (scalaVersion=2.12, sbtVersion=1.0) (C:\Users\USER\.sbt\1.0\plugins\idea.sbt#L4-8)
[warn] +- org.scala-sbt:global-plugins:0.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn] org.jetbrains:sbt-idea-shell:2017.2 (scalaVersion=2.12, sbtVersion=1.0) (C:\Users\USER\.sbt\1.0\plugins\idea.sbt#L4-8)
[warn] +- org.scala-sbt:global-plugins:0.0 (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.jetbrains#sbt-structure-extractor;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-structure-extractor;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-structure-extractor;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-structure-extractor_2.12_1.0/2017.2/sbt-structure-extractor-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] unresolved dependency: org.jetbrains#sbt-idea-shell;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-idea-shell;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-idea-shell;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-idea-shell_2.12_1.0/2017.2/sbt-idea-shell-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[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.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error] at java.lang.Thread.run(Thread.java:748)
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? [error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: org.jetbrains#sbt-structure-extractor;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-structure-extractor;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-structure-extractor;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-structure-extractor_2.12_1.0/2017.2/sbt-structure-extractor-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] unresolved dependency: org.jetbrains#sbt-idea-shell;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-idea-shell;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-idea-shell;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-idea-shell_2.12_1.0/2017.2/sbt-idea-shell-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
Update : Below is the file content
build.sbt
name := "untitled3"
version := "0.1"
scalaVersion := "2.12.4"
Update -- JAVA_OPTS setting
SET "JAVA_OPTS=-Dhttp.proxyHost=sproxy.wwcorp.ad.com -Dhttp.proxyPort=8090 -Dhttps.proxyHost=sproxy.wwcorp.ad.com -Dhttps.proxyPort=8090"
Update -- New Error log
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from C:\Users\USER\.sbt\1.0\plugins
[info] Updating {file:/C:/Users/USER/.sbt/1.0/plugins/}global-plugins...
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): typesafe-ivy-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.typesafe.com/typesafe/ivy-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.typesafe.com/52.201.87.92:443 (5372ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): sbt-plugin-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/34.206.162.65:443 (4118ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): public: unable to get resource for org/apache/logging/log4j#log4j-core;2.8.1: res=https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443 (1071ms)
[warn] Detected merged artifact: [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): (0ms).
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar
[warn] ==== local: tried
[warn] C:\Users\USER\.ivy2\local\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ==== local-preloaded-ivy: tried
[warn] C:\Users\USER\.sbt\preloaded\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== local-preloaded: tried
[warn] file:/C:/Users/USER/.sbt/preloaded/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[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.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.librarymanagement.ResolveException: download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Update SBT
name := "untitled3"
version := "0.1"
scalaVersion := "2.12.4"
excludeDependencies += "org.apache.logging.log4j"
In my case, this had nothing to do with any proxies. I had specified sbt.version=1.0.3 in project/build.properties, and I had installed sbt version 1.1.1. The failure mode was baffling.
For me this occured when upgrading scala 2.12.11 -> 2.13.2. It turned out I was using libraries, that did not support scala 2.13 at that time. My build.sbt looks like this (simplified):
scalaVersion := "2.12.11"
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.0"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.0"
libraryDependencies += "org.apache.spark" %% "spark-mllib" % "2.4.0"
When using double percent, the artifact name gets a postfix with major and minor version of scala, for example spark-core is translated to spark-core_2.12. When I changed scalaVersion to 2.13.2, I would rely on dependencies with _2.13 suffix, that did not exist (I checked on maven central, that 2.12 is the newest scala supported.
Seems that there's several things that've disappeared out of SBT's release cache that it needs for 0.13.x and for 1.x.x of SBT over the last couple of days. Still looking for answers, I added a resolver for this out of Maven 2 that should be finding the thing (it is DOWNLOADABLE from Maven 2...) but it is ignoring the thing
I'm rapidly being very and deeply underwhelmed with sbt in the same manner as I am with Autotools (This is a very, very bad thing...). Tools should be only as complex as they NEED to be and moderately straightforward in their use, regardless. They should be self contained and not pull a bunch of stuff, willy-nilly, out of the aether like sbt seems to be wont to do.
I'll dig further myself and see if I can get it sorted out somehow and update answers accordingly.
Increasing the heap size to 5GB in sbt settings resolved my problem
In my case launched sbt server affected reloading an sbt project. Shutdown the server helped me
I've been trying to modify the Fratboi language (which itself is based on the ArnoldC language), and I can't seem to get either one to build, even when I've made no modifications to the source code.
I've been following the instructions in the Fratboi repository, but can't seem to actually compile the language into the handy .jar file that you're supposed to use when running the language.
This is the error:
sbt compile
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /home/user/workspace/Fratboi/project
[info] Updating {file:/home/user/workspace/Fratboi/project/}fratboi-build...
[warn] module not found: com.github.mpeltonen#sbt-idea;1.6.0
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.github.mpeltonen/sbt-idea/scala_2.12/sbt_1.0//1.6.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.github.mpeltonen/sbt-idea/ scala_2.12/sbt_1.0//1.6.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/user/.ivy2/local/com.github.mpeltonen/sbt-idea/scala_2.12/sbt_1.0//1.6.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.12_1.0/1.6.0/sbt- idea-1.6.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /home/user/.sbt/preloaded/com.github.mpeltonen/sbt-idea/1.6.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/user/.sbt/preloaded/com/github/mpeltonen/sbt-idea_2.12_1.0/1.6.0/sbt-idea-1.6.0.pom
[warn] module not found: com.eed3si9n#sbt-assembly;0.14.1
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0//0.14.1/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/ scala_2.12/sbt_1.0//0.14.1/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/user/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0//0.14.1/ivys/ ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.12_1.0/0.14.1/sbt- assembly-0.14.1.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /home/user/.sbt/preloaded/com.eed3si9n/sbt-assembly/0.14.1/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/user/.sbt/preloaded/com/eed3si9n/sbt-assembly_2.12_1.0/0.14.1/sbt- assembly-0.14.1.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.mpeltonen#sbt-idea;1.6.0: not found
[warn] :: com.eed3si9n#sbt-assembly;0.14.1: not found
[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.14.1 (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) (/ home/user/workspace/Fratboi/project/plugins.sbt#L1-2)
[warn] +- default:fratboi-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[warn] com.eed3si9n:sbt-assembly:0.14.1 (scalaVersion=2.12, sbtVersion=1.0) (/home/user/workspace/Fratboi/project/plugins.sbt#L3-4)
[warn] +- default:fratboi-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found
[error] unresolved dependency: com.eed3si9n#sbt-assembly;0.14.1: not found
[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:64)
[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:141)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:118)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2313)
[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:17)
[error] at sbt.Execute.work(Execute.scala:266)
[error] at sbt.Execute.$anonfun$submit$1(Execute.s cala:257)
[error] at sbt.ConcurrentRestrictions$$anon$4.$ano nfun$submitValid$1 (ConcurrentRestrictions.scala:167)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool Executor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found
[error] unresolved dependency: com.eed3si9n#sbt-assembly;0.14.1: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
Thanks for any help.
It looks like you're using sbt 1.0, and those two sbt plugins are not (yet?) published for that version. Try with sbt 0.13.x and you should be able to resolve them.