unresolved dependency: com.typesafe.sbt eclipse#sbteclipse-plugin;2.1.0

1,312 views
Skip to first unread message

Tim Rowe

unread,
Mar 26, 2013, 6:52:35 PM3/26/13
to simple-b...@googlegroups.com
I'm completely new to sbt, and I have no idea whatsoever what any of
this means. What do I do now?

> console
[info] Updating {file:/Z:/Education/Coursera/Scala/Assignment0/example/project/}
default-dee6f7...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving net.databinder#dispatch-http_2.9.2;0.8.8 ...
[info] Resolving net.databinder#dispatch-core_2.9.2;0.8.8 ...
[info] Resolving org.apache.httpcomponents#httpclient;4.1.3 ...
[info] Resolving org.apache.httpcomponents#httpcore;4.1.4 ...
[info] Resolving commons-logging#commons-logging;1.1.1 ...
[info] Resolving commons-codec#commons-codec;1.4 ...
[info] Resolving net.databinder#dispatch-futures_2.9.2;0.8.8 ...
[info] Resolving org.scalastyle#scalastyle_2.9.1;0.1.3-SNAPSHOT ...
[info] Resolving org.scalariform#scalariform_2.9.1;0.1.1 ...
[info] Resolving com.github.scopt#scopt_2.9.1;2.0.0 ...
[info] Resolving cc.spray#spray-json_2.9.2;1.1.1 ...
[info] Resolving org.parboiled#parboiled-scala;1.0.2 ...
[info] Resolving org.parboiled#parboiled-core;1.0.2 ...
[info] Resolving org.scalatest#scalatest_2.9.2;1.9.1 ...
[info] Resolving org.apache.commons#commons-lang3;3.1 ...
[info] Resolving com.typesafe.sbteclipse#sbteclipse-plugin;2.1.0 ...
[warn] module not found: com.typesafe.sbteclipse#sbteclipse-plugin;2.1.0
[warn] ==== local: tried
[warn] C:\Users\tgr\.ivy2\local\com.typesafe.sbteclipse\sbteclipse-plugin\scal
a_2.9.2\sbt_0.12\2.1.0\ivys\ivy.xml
[warn] ==== namin.github.com/maven-repository: tried
[warn] http://namin.github.com/maven-repository/com/typesafe/sbteclipse/sbtecl
ipse-plugin_2.9.2_0.12/2.1.0/sbteclipse-plugin-2.1.0.pom
[warn] ==== Spray Repository: tried
[warn] http://repo.spray.cc/com/typesafe/sbteclipse/sbteclipse-plugin_2.9.2_0.
12/2.1.0/sbteclipse-plugin-2.1.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse-plugin
_2.9.2_0.12/2.1.0/sbteclipse-plugin-2.1.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbteclipse#sbteclipse-plugin;2.1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that th
ese dependencies exist with the requested attributes.
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:2.1.0 (sbtVersion=0.12
, scalaVersion=2.9.2)
[warn]
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.sbt
eclipse#sbteclipse-plugin;2.1.0: not found
[error] Total time: 45 s, completed 26-Mar-2013 22:39:38
>

Robin Green

unread,
Mar 27, 2013, 4:45:04 AM3/27/13
to simple-b...@googlegroups.com
It is looking for the sbteclipse-plugin for sbt, with the following exact version: 2.1.0 (sbtVersion=0.12, scalaVersion=2.9.2). All of those versions have to match. However, it can't find it in any of the places it lists.

I'm not sure where it's supposed to be downloaded from; it seems that recent sbt versions (including 0.12.x which you are using) manage to find it as if by magic. However, I suspect it's the typesafe plugins repo, and sbt isn't looking there for some reason.

To fix this, I think you'd need to either add that repository to the list of repositories sbt is looking in for plugins, or disable the sbteclipse-plugin if you don't need it. Both of these would be accomplished by editing either project\plugins.sbt or (if such a file exists, which it probably doesn't since you are new to sbt) C:\Users\tgr\.sbt\project\*.sbt.

Heiko Seeberger

unread,
Mar 27, 2013, 6:26:50 AM3/27/13
to simple-b...@googlegroups.com
Without providing a reproducible test case I can only speculate. 

Did you add sbteclipse in ~/.sbt/build.sbt instead or ~/.sbt/project/plugins.sbt?
Or if you didn't use the global sbt configuration, maybe you used <project-dir>/build.sbt instead of <project-dir>/project/plugins.sbt?

Heiko

--

Heiko Seeberger
Twitter: @hseeberger
Company: Typesafe - The software stack for applications that scale
Author of "Durchstarten mit Scala, a tutorial-style Scala book"

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



John McCullough

unread,
Apr 26, 2014, 9:31:55 AM4/26/14
to simple-b...@googlegroups.com
Since this post is over a year old I assume you have resolved it; however, I decided to reply with the resolution in hope that it would help the next person.

Based on the exception dump, sbt was executed in the wrong directory:

Looks like you executed 'sbt' it in Z:/Education/Coursera/Scala/Assignment0/example/project/

It should have been run in Z:/Education/Coursera/Scala/Assignment0/example/

Jimmy Scray

unread,
Feb 19, 2015, 12:54:50 PM2/19/15
to simple-b...@googlegroups.com
I kept getting that error until I added the most recent version of the eclipse plugin.
Reply all
Reply to author
Forward
0 new messages