All sbt plugins not found - sbt

when I use the sbt command in my project
$sbt
All my plugins are not found. Here is the content of my project/plugins.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.10.1")
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.3.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.6.4")
The errors are the following :
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.11.2: not found
[warn] :: org.xerial.sbt#sbt-pack;0.3.1: not found
[warn] :: com.typesafe.sbt#sbt-scalariform;1.2.1: not found
[warn] :: com.typesafe.sbt#sbt-native-packager;0.6.4: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
It looks like I'm missing a very basic step somewhere in configuring sbt or getting my plugins.
full output :
> tarting sbt: invoke with -help for other options [info] Loading
> project definition from
> /home/vincent/Documents/École/PredictionIO/PredictionIO/project [info]
> Updating
> {file:/home/vincent/Documents/%C3%89cole/PredictionIO/PredictionIO/project/}default-5bb8ef...
> [info] Resolving com.eed3si9n#sbt-assembly;0.11.2 ... [warn] module
> not found: com.eed3si9n#sbt-assembly;0.11.2 [warn] ====
> typesafe-ivy-releases: tried [warn]
> http://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.11.2/ivys/ivy.xml
> [warn] ==== local: tried [warn]
> /root/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.9.1/sbt_0.11.3/0.11.2/ivys/ivy.xml
> [warn] ==== public: tried [warn]
> http://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.9.1_0.11.3/0.11.2/sbt-assembly-0.11.2.pom
> [info] Resolving org.xerial.sbt#sbt-pack;0.3.1 ... [warn] module not
> found: org.xerial.sbt#sbt-pack;0.3.1 [warn] ====
> typesafe-ivy-releases: tried [warn]
> http://repo.typesafe.com/typesafe/ivy-releases/org.xerial.sbt/sbt-pack/scala_2.9.1/sbt_0.11.3/0.3.1/ivys/ivy.xml
> [warn] ==== local: tried [warn]
> /root/.ivy2/local/org.xerial.sbt/sbt-pack/scala_2.9.1/sbt_0.11.3/0.3.1/ivys/ivy.xml
> [warn] ==== public: tried [warn]
> http://repo1.maven.org/maven2/org/xerial/sbt/sbt-pack_2.9.1_0.11.3/0.3.1/sbt-pack-0.3.1.pom
> [info] Resolving com.typesafe.sbt#sbt-scalariform;1.2.1 ... [warn]
> module not found: com.typesafe.sbt#sbt-scalariform;1.2.1 [warn] ====
> typesafe-ivy-releases: tried [warn]
> http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-scalariform/scala_2.9.1/sbt_0.11.3/1.2.1/ivys/ivy.xml
> [warn] ==== local: tried [warn]
> /root/.ivy2/local/com.typesafe.sbt/sbt-scalariform/scala_2.9.1/sbt_0.11.3/1.2.1/ivys/ivy.xml
> [warn] ==== public: tried [warn]
> http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-scalariform_2.9.1_0.11.3/1.2.1/sbt-scalariform-1.2.1.pom
> [info] Resolving com.typesafe.sbt#sbt-native-packager;0.6.4 ... [warn]
> module not found: com.typesafe.sbt#sbt-native-packager;0.6.4 [warn]
> ==== typesafe-ivy-releases: tried [warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.9.1/sbt_0.11.3/0.6.4/ivys/ivy.xml
> [warn] ==== local: tried [warn]
> /root/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.9.1/sbt_0.11.3/0.6.4/ivys/ivy.xml
> [warn] ==== public: tried [warn]
> http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.9.1_0.11.3/0.6.4/sbt-native-packager-0.6.4.pom
> [info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#main_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#actions_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#classfile_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#io_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#control_2.9.1;0.11.3 ... [info] Resolving
> org.scala-lang#scala-library;2.9.1 ... [info] Resolving
> org.scala-sbt#interface;0.11.3 ... [info] Resolving
> org.scala-sbt#logging_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#process_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#classpath_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#launcher-interface_2.9.1;0.11.3 ... [info] Resolving
> org.scala-lang#scala-compiler;2.9.1 ... [info] Resolving
> org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#collections_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#api_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#persist_2.9.1;0.11.3 ... [info] Resolving
> org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ... [info] Resolving
> org.scala-sbt#compile_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#ivy_2.9.1;0.11.3 ... [info] Resolving
> org.apache.ivy#ivy;2.2.0 ... [info] Resolving com.jcraft#jsch;0.1.46
> ... [info] Resolving commons-httpclient#commons-httpclient;3.1 ...
> [info] Resolving commons-logging#commons-logging;1.0.4 ... [info]
> Resolving commons-codec#commons-codec;1.2 ... [info] Resolving
> org.scala-sbt#completion_2.9.1;0.11.3 ... [info] Resolving
> jline#jline;0.9.94 ... [info] Resolving org.scala-sbt#run_2.9.1;0.11.3
> ... [info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ... [info]
> Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#tracking_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#cache_2.9.1;0.11.3 ... [info] Resolving
> org.scala-sbt#testing_2.9.1;0.11.3 ... [info] Resolving
> org.scala-tools.testing#test-interface;0.5 ... [info] Resolving
> org.scala-sbt#compiler-interface;0.11.3 ... [info] Resolving
> org.scala-sbt#precompiled-2_8_2;0.11.3 ... [info] Resolving
> org.scala-sbt#precompiled-2_8_1;0.11.3 ... [info] Resolving
> org.scala-sbt#precompiled-2_9_2;0.11.3 ... [warn]
> :::::::::::::::::::::::::::::::::::::::::::::: [warn] ::
> UNRESOLVED DEPENDENCIES :: [warn]
> :::::::::::::::::::::::::::::::::::::::::::::: [warn] ::
> com.eed3si9n#sbt-assembly;0.11.2: not found [warn] ::
> org.xerial.sbt#sbt-pack;0.3.1: not found [warn] ::
> com.typesafe.sbt#sbt-scalariform;1.2.1: not found [warn] ::
> com.typesafe.sbt#sbt-native-packager;0.6.4: 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.11.2 (sbtVersion=0.11.3,
> scalaVersion=2.9.1) [warn] org.xerial.sbt:sbt-pack:0.3.1
> (sbtVersion=0.11.3, scalaVersion=2.9.1) [warn]
> com.typesafe.sbt:sbt-scalariform:1.2.1 (sbtVersion=0.11.3,
> scalaVersion=2.9.1) [warn]
> com.typesafe.sbt:sbt-native-packager:0.6.4 (sbtVersion=0.11.3,
> scalaVersion=2.9.1) [warn] [error]
> {file:/home/vincent/Documents/%C3%89cole/PredictionIO/PredictionIO/project/}default-5bb8ef/*:update:
> sbt.ResolveException: unresolved dependency:
> com.eed3si9n#sbt-assembly;0.11.2: not found [error] unresolved
> dependency: org.xerial.sbt#sbt-pack;0.3.1: not found [error]
> unresolved dependency: com.typesafe.sbt#sbt-scalariform;1.2.1: not
> found [error] unresolved dependency:
> com.typesafe.sbt#sbt-native-packager;0.6.4: not found Project loading
> failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i [warn] Ignoring load
> failure: no project loaded.

My sbt version is sbt 0.11.3. It's my first project with sbt.
Head over to scala-sbt.org to find the latest stable version (as of April 2014, it's 0.13.2).
If for some reason you have to use sbt 0.11.3, here are the plugin versions you could try:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.0")
I wasn't able to find the other plugins for sbt 0.11.3. Not sure if they existed back then.

Related

sbt.ResolveException: unresolved dependency: org.apache.spark#spark-core_2.11;2.1.2: not found

I want to use the connected components algo in spark 2.0. However, the packaging with sbt 0.13.15 got dependency errors. What's the cause behind this? The build.sbt file is like this:
lazy val root = (project in file(".")).
settings(
name := "Networkana",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.1.2" % "provided",
"org.apache.spark" %% "spark-sql" % "2.1.2" % "provided",
"org.apache.spark" %% "spark-hive" % "2.1.2" % "provided",
"org.apache.spark" %% "spark-hive-thriftserver" % "2.1.2" % "provided",
"org.apache.spark" %% "spark-mllib" % "2.1.2" % "provided",
"graphframes" % "graphframes" % "0.5.0-spark2.1-s_2.11",
"org.apache.spark" %% "spark-graphx" % "2.1.0",
"joda-time" % "joda-time" % "2.7",
"org.joda" % "joda-convert" % "1.7"
)
//resolvers ++= Resolver.url("SparkPackages", url("https://dl.bintray.com/spark-packages/maven/"))
)
Spark 2.0.0 is failing with:
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading project definition from /data/mop_strategy_group/machine_learning/AlgorithmsCodes/Networkana/project
[info] Updating {file:/data/mop_strategy_group/machine_learning/AlgorithmsCodes/Networkana/project/}networkana-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to Networkana (in build file:/data/mop_strategy_group/machine_learning/AlgorithmsCodes/Networkana/)
[info] Updating {file:/data/mop_strategy_group/machine_learning/AlgorithmsCodes/Networkana/}root...
[info] Resolving org.apache.spark#spark-graphx_2.11;2.1.0 ...
[error] Server access Error: Connection refused (Connection refused) url=https://repo1.maven.org/maven2/org/apache/spark/spark-graphx_2.11/2.1.0/spark-graphx_2.11-2.1.0.pom
[warn] module not found: org.apache.spark#spark-graphx_2.11;2.1.0
[warn] ==== local: tried
[warn] /data/mop_strategy_group/.ivy2/local/org.apache.spark/spark-graphx_2.11/2.1.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-graphx_2.11/2.1.0/spark-graphx_2.11-2.1.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /data/mop_strategy_group/.sbt/preloaded/org.apache.spark/spark-graphx_2.11/2.1.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////data/mop_strategy_group/.sbt/preloaded/org/apache/spark/spark-graphx_2.11/2.1.0/spark-graphx_2.11-2.1.0.pom
[info] Resolving org.apache.spark#spark-core_2.11;2.1.2 ...
[error] Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/apache/spark/spark-core_2.11/2.1.2/spark-core_2.11-2.1.2.pom
[warn] module not found: org.apache.spark#spark-core_2.11;2.1.2
[warn] ==== local: tried
[warn] /data/mop_strategy_group/.ivy2/local/org.apache.spark/spark-core_2.11/2.1.2/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-core_2.11/2.1.2/spark-core_2.11-2.1.2.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /data/mop_strategy_group/.sbt/preloaded/org.apache.spark/spark-core_2.11/2.1.2/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////data/mop_strategy_group/.sbt/preloaded/org/apache/spark/spark-core_2.11/2.1.2/spark-core_2.11-2.1.2.pom
[info] Resolving org.apache.spark#spark-sql_2.11;2.1.2 ...
[error] Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/apache/spark/spark-sql_2.11/2.1.2/spark-sql_2.11-2.1.2.pom
[warn] module not found: org.apache.spark#spark-sql_2.11;2.1.2
[warn] ==== local: tried
[warn] /data/mop_strategy_group/.ivy2/local/org.apache.spark/spark-sql_2.11/2.1.2/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-sql_2.11/2.1.2/spark-sql_2.11-2.1.2.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /data/mop_strategy_group/.sbt/preloaded/org.apache.spark/spark-sql_2.11/2.1.2/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////data/mop_strategy_group/.sbt/preloaded/org/apache/spark/spark-sql_2.11/2.1.2/spark-sql_2.11-2.1.2.pom
[info] Resolving org.apache.spark#spark-hive_2.11;2.1.2 ...
[error] Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/apache/spark/spark-hive_2.11/2.1.2/spark-hive_2.11-2.1.2.pom
[warn] module not found: org.apache.spark#spark-hive_2.11;2.1.2
[warn] ==== local: tried
[warn] /data/mop_strategy_group/.ivy2/local/org.apache.spark/spark-hive_2.11/2.1.2/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-hive_2.11/2.1.2/spark-hive_2.11-2.1.2.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /data/mop_strategy_group/.sbt/preloaded/org.apache.spark/spark-hive_2.11/2.1.2/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////data/mop_strategy_group/.sbt/preloaded/org/apache/spark/spark-hive_2.11/2.1.2/spark-hive_2.11-2.1.2.pom
[info] Resolving org.apache.spark#spark-hive-thriftserver_2.11;2.1.2 ...
[error] Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/apache/spark/spark-hive-thriftserver_2.11/2.1.2/spark-hive-thriftserver_2.11-2.1.2.pom
[warn] module not found: org.apache.spark#spark-hive-thriftserver_2.11;2.1.2
[warn] ==== local: tried
[warn] /data/mop_strategy_group/.ivy2/local/org.apache.spark/spark-hive-thriftserver_2.11/2.1.2/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-hive-thriftserver_2.11/2.1.2/spark-hive-thriftserver_2.11-2.1.2.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /data/mop_strategy_group/.sbt/preloaded/org.apache.spark/spark-hive-thriftserver_2.11/2.1.2/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////data/mop_strategy_group/.sbt/preloaded/org/apache/spark/spark-hive-thriftserver_2.11/2.1.2/spark-hive-thriftserver_2.11-2.1.2.pom
[info] Resolving org.apache.spark#spark-mllib_2.11;2.1.2 ...
[error] Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/apache/spark/spark-mllib_2.11/2.1.2/spark-mllib_2.11-2.1.2.pom
[warn] module not found: org.apache.spark#spark-mllib_2.11;2.1.2
[warn] ==== local: tried
[warn] /data/mop_strategy_group/.ivy2/local/org.apache.spark/spark-mllib_2.11/2.1.2/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-mllib_2.11/2.1.2/spark-mllib_2.11-2.1.2.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /data/mop_strategy_group/.sbt/preloaded/org.apache.spark/spark-mllib_2.11/2.1.2/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////data/mop_strategy_group/.sbt/preloaded/org/apache/spark/spark-mllib_2.11/2.1.2/spark-mllib_2.11-2.1.2.pom
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.spark#spark-graphx_2.11;2.1.0: not found
[warn] :: org.apache.spark#spark-core_2.11;2.1.2: not found
[warn] :: org.apache.spark#spark-sql_2.11;2.1.2: not found
[warn] :: org.apache.spark#spark-hive_2.11;2.1.2: not found
[warn] :: org.apache.spark#spark-hive-thriftserver_2.11;2.1.2: not found
[warn] :: org.apache.spark#spark-mllib_2.11;2.1.2: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.apache.spark:spark-mllib_2.11:2.1.2 (/data/mop_strategy_group/wuzj_spark/Networkana/build.sbt#L6)
[warn] +- networkana:networkana_2.11:1.0
[warn] org.apache.spark:spark-graphx_2.11:2.1.0 (/data/mop_strategy_group/wuzj_spark/Networkana/build.sbt#L6)
[warn] +- networkana:networkana_2.11:1.0
[warn] org.apache.spark:spark-hive_2.11:2.1.2 (/data/mop_strategy_group/wuzj_spark/Networkana/build.sbt#L6)
[warn] +- networkana:networkana_2.11:1.0
[warn] org.apache.spark:spark-sql_2.11:2.1.2 (/data/mop_strategy_group/wuzj_spark/Networkana/build.sbt#L6)
[warn] +- networkana:networkana_2.11:1.0
[warn] org.apache.spark:spark-core_2.11:2.1.2 (/data/mop_strategy_group/wuzj_spark/Networkana/build.sbt#L6)
[warn] +- networkana:networkana_2.11:1.0
[warn] org.apache.spark:spark-hive-thriftserver_2.11:2.1.2 (/data/mop_strategy_group/wuzj_spark/Networkana/build.sbt#L6)
[warn] +- networkana:networkana_2.11:1.0
sbt.ResolveException: unresolved dependency: org.apache.spark#spark-graphx_2.11;2.1.0: not found
unresolved dependency: org.apache.spark#spark-core_2.11;2.1.2: not found
unresolved dependency: org.apache.spark#spark-sql_2.11;2.1.2: not found
unresolved dependency: org.apache.spark#spark-hive_2.11;2.1.2: not found
unresolved dependency: org.apache.spark#spark-hive-thriftserver_2.11;2.1.2: not found
unresolved dependency: org.apache.spark#spark-mllib_2.11;2.1.2: not found
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:191)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:168)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:133)
at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
at sbt.IvySbt$$anon$4.call(Ivy.scala:65)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
at sbt.IvySbt.withIvy(Ivy.scala:128)
at sbt.IvySbt.withIvy(Ivy.scala:125)
at sbt.IvySbt$Module.withModule(Ivy.scala:156)
at sbt.IvyActions$.updateEither(IvyActions.scala:168)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1488)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1484)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$121.apply(Defaults.scala:1519)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$121.apply(Defaults.scala:1517)
at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:37)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1522)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1516)
at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:60)
at sbt.Classpaths$.cachedUpdate(Defaults.scala:1539)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1466)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1418)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.spark#spark-graphx_2.11;2.1.0: not found
[error] unresolved dependency: org.apache.spark#spark-core_2.11;2.1.2: not found
[error] unresolved dependency: org.apache.spark#spark-sql_2.11;2.1.2: not found
[error] unresolved dependency: org.apache.spark#spark-hive_2.11;2.1.2: not found
[error] unresolved dependency: org.apache.spark#spark-hive-thriftserver_2.11;2.1.2: not found
[error] unresolved dependency: org.apache.spark#spark-mllib_2.11;2.1.2: not found
I see this line:
[error] Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/apache/spark/spark-hive-thriftserver_2.11/2.1.2/spark-hive-thriftserver_2.11-2.1.2.pom
It seems like you're trying to connect with a Java version that doesn't support TLSv1.2 (or is not enabled)
Please read Why am I getting "Received fatal alert: protocol_version" or "peer not authenticated" from Maven Central? for the complete answer and how to solve it.

Error installing plugin sbt 1.0 sbt-idea 1.6.0

I need some help on these, I clone this repository
https://github.com/oermolaev/simple-scala-rest-example
But when I run sbt I got such errors:
Interesting I could not run maybe some repository is outdated... If you could help me I would be very glad
resolvers ++= Seq(
"Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/",
"Sonatype releases" 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
I need help on install such plugin here.
thanks
ps why is so HARD to ask questions here it took more than 20 minutes trying to hit the publish button! comeon
Well I explain what I did
Changed sbt.version to 0.13.7 inside build properties.
My machine was on java 9, downloaded good old jdk1.8 from Oracle archive and installed.
git clone
sbt on project
plugin to 1.6.0
and ran
thanks

SBT dependencies are present in cache , but it still show the error dependencies not resolved

I have build a project on my machine and share the cache to my colleague. He copied the cache on his .ivy_Home/cache and when he tries to build the project , it shows dependencies not resolved exception .
logs are -
Yo
u probably access the destination server through a proxy server that is not well configured.
[warn] module not found: org.apache.spark#spark-sql_2.11;2.2.0
[warn] ==== local: tried
[warn] C:\Users\TEMP.FM.007\.ivy2\local\org.apache.spark\spark-sql_2.11\2.2.0\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/spark/spark-sql_2.11/2.2.0/spark-sql_2.11-2.2.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] C:\Users\TEMP.FM.007\.sbt\preloaded\org.apache.spark\spark-sql_2.11\2.2.0\ivys\ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:/C:/Users/TEMP.FM.007/.sbt/preloaded/org/apache/spark/spark-sql_2.11/2.2.0/spark-sql_2.11-2.2.0.pom
[warn] ==== Sonatype OSS Snapshots: tried
[warn] https://oss.sonatype.org/content/repositories/snapshots/org/apache/spark/spark-sql_2.11/2.2.0/spark-sql_2.11-2.2.0.pom
[info] Resolving org.scala-lang#scala-compiler;2.11.11 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.5 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.4 ...
[info] Resolving jline#jline;2.14.3 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.spark#spark-core_2.11;2.2.0: not found
[warn] :: org.apache.spark#spark-sql_2.11;2.2.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.apache.spark:spark-core_2.11:2.2.0 (C:\CDE\Mosaic\dcp\build.sbt#L13-18)
[warn] +- default:dcp_2.11:1.0
[warn] org.apache.spark:spark-sql_2.11:2.2.0 (C:\CDE\Mosaic\dcp\build.sbt#L13-18)
[warn] +- default:dcp_2.11:1.0
[trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the full output.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
[trace] Stack trace suppressed: run 'last *:update' for the full output.
[error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: org.apache.spark#spark-core_2.11;2.2.0: not found
[error] unresolved dependency: org.apache.spark#spark-sql_2.11;2.2.0: not found
[error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.spark#spark-core_2.11;2.2.0: not found
[error] unresolved dependency: org.apache.spark#spark-sql_2.11;2.2.0: not found

Unable to resolve dependency com.geirsson#sbt-scalafmt;1.1.0

I would like to download com.geirsson#sbt-scalafmt;1.1.0 via sbt
I have added sbt-scalafmt dependency in plugins.sbt as follows:
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.1.0")
But I am getting an error of UNRESOLVED DEPENDENCIES while running sbt
Resolving com.geirsson#sbt-scalafmt;1.1.0 ...
[warn] module not found: com.geirsson#sbt-scalafmt;1.1.0
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.geirsson/sbt-scalafmt/scala_2.10/sbt_0.13/1.1.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.geirsson/sbt-scalafmt/scala_2.10/sbt_0.13/1.1.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /Users/salonivithalani/.ivy2/local/com.geirsson/sbt-scalafmt/scala_2.10/sbt_0.13/1.1.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/geirsson/sbt-scalafmt_2.10_0.13/1.1.0/sbt-scalafmt-1.1.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /Users/salonivithalani/.sbt/preloaded/com.geirsson/sbt-scalafmt/1.1.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////Users/salonivithalani/.sbt/preloaded/com/geirsson/sbt-scalafmt_2.10_0.13/1.1.0/sbt-scalafmt-1.1.0.pom
[warn] ==== bintray-scalameta-maven: tried
[warn] https://dl.bintray.com/scalameta/maven/com/geirsson/sbt-scalafmt_2.10_0.13/1.1.0/sbt-scalafmt-1.1.0.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.geirsson#sbt-scalafmt;1.1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.geirsson:sbt-scalafmt:1.1.0 (scalaVersion=2.10, sbtVersion=0.13)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.geirsson:sbt-scalafmt:1.1.0 (scalaVersion=2.10, sbtVersion=0.13) (/Users/salonivithalani/Desktop/tw_tmt/csw-prod/project/plugins.sbt#L3-4)
[warn] +- default:csw-prod-build:0.1-SNAPSHOT (scalaVersion=2.10, sbtVersion=0.13)
sbt.ResolveException: unresolved dependency: com.geirsson#sbt-scalafmt;1.1.0: not found
Your current setup requires sbt version 1.0 so it will not work for 0.13. A workaround for 0.13 is described here http://scalameta.org/scalafmt/#sbt0.13

why does sbt throw error while trying to compile mllib example

I am trying to compile and run the below example with the steps given at the link
http://chimpler.wordpress.com/2014/06/11/classifiying-documents-using-naive-bayes-on-apache-spark-mllib/
i get the following error while trying to do the same.
[info] Loading project definition from /siva/nbais/blog-spark-naive-bayes-reuters-master/project
[warn] module not found: com.github.mpeltonen#sbt-idea;1.6.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.github.mpeltonen/sbt-idea/scala_2.9.1/sbt_0.11.3/1.6.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /root/.ivy2/local/com.github.mpeltonen/sbt-idea/scala_2.9.1/sbt_0.11.3/1.6.0/ivys/ivy.xml
[warn] ==== sbt-idea-repo: tried
[warn] http://mpeltonen.github.com/maven/com/github/mpeltonen/sbt-idea_2.9.1_0.11.3/1.6.0/sbt-idea-1.6.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.1_0.11.3/1.6.0/sbt-idea-1.6.0.pom
[warn] module not found: com.typesafe.sbteclipse#sbteclipse-plugin;2.5.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.1/sbt_0.11.3/2.5.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /root/.ivy2/local/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.1/sbt_0.11.3/2.5.0/ivys/ivy.xml
[warn] ==== sbt-idea-repo: tried
[warn] http://mpeltonen.github.com/maven/com/typesafe/sbteclipse/sbteclipse-plugin_2.9.1_0.11.3/2.5.0/sbteclipse-plugin-2.5.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse-plugin_2.9.1_0.11.3/2.5.0/sbteclipse-plugin-2.5.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.mpeltonen#sbt-idea;1.6.0: not found
[warn] :: com.typesafe.sbteclipse#sbteclipse-plugin;2.5.0: 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 (sbtVersion=0.11.3, scalaVersion=2.9.1)
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:2.5.0 (sbtVersion=0.11.3, scalaVersion=2.9.1)
[warn]
[error] {file:/siva/nbais/blog-spark-naive-bayes-reuters-master/project/}default-4c8897/*:update: sbt.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found
[error] unresolved dependency: com.typesafe.sbteclipse#sbteclipse-plugin;2.5.0: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
any ideas?
sbt-idea 1.6.0 requires Scala 2.10+ and SBT 0.13+. But your env is Scala 2.9.1 and SBT 0.11.3. Please update them.

Resources