I have not code for a few years and now trying to get back into the game. I am trying to set up a very simple scala project HelloWorld and getting the following error message when I try to compile from sbt console. I was adding sbteclipse plugin to generate eclipse project setting.
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbteclipse#sbteclipse-plugin;4.0.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:4.0.0 (scalaVersion=2.11, sbtVersion=0.13)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:4.0.0 (scalaVersion=2.11, sbtVersion=0.13) (/Users/michael/Development/Scala-Testings/HelloWorld/project/plugins.sbt#L3-4)
[warn] +- default:helloworld-build:0.1-SNAPSHOT (scalaVersion=2.11, sbtVersion=0.13)
sbt.ResolveException: unresolved dependency: com.typesafe.sbteclipse#sbteclipse-plugin;4.0.0: not found
I am on macOS Sierra with scala version 2.11.8 and sbt 0.13.12 installed from brew.
Project Directory Structure
src
+- main
+- scala
+- HelloWorld.scala
project
+- plugins.sbt
build.sbt
Content of build.sbt
name := "HelloWorld"
version := "1.0"
scalaVersion := "2.11.8"
Content of plugins.sbt
logLevel := Level.Warn
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
Content of HelloWorld.scala
object HelloWorld extends App {
def main (args Array[String]) : Unit = {
println ("HelloWorld!")
}
}