0.10 depends on junit 3.8.1

67 views
Skip to first unread message

Ivan Porto Carrero

unread,
Jun 4, 2011, 3:57:19 AM6/4/11
to simple-b...@googlegroups.com
Hi

I've created a very simple build file and downloaded sbt 0.10 when I try to launch it this is what I see: 

git:(next) ✗ » ./sbt                     
Getting net.java.dev.jna jna 3.2.3 ...
[SUCCESSFUL ] net.java.dev.jna#jna;3.2.3!jna.jar (2263ms)
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
1 artifacts copied, 0 already retrieved (838kB/16ms)
Getting Scala 2.8.1 (for sbt)...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.8.1!scala-compiler.jar (3196ms)
[SUCCESSFUL ] org.scala-lang#scala-library;2.8.1!scala-library.jar (3370ms)
[SUCCESSFUL ] jline#jline;0.9.91!jline.jar (950ms)

:: problems summary ::
:::: WARNINGS
[NOT FOUND  ] junit#junit;3.8.1!junit.jar (0ms)

==== Maven2 Local: tried

 file:///home/ivan/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

::::::::::::::::::::::::::::::::::::::::::::::

::              FAILED DOWNLOADS            ::

:: ^ see resolution messages for details  ^ ::

::::::::::::::::::::::::::::::::::::::::::::::

:: junit#junit;3.8.1!junit.jar

::::::::::::::::::::::::::::::::::::::::::::::



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
download failed: junit#junit;3.8.1!junit.jar
Error during sbt execution: Error retrieving required libraries
  (see /media/projects/ivan/mojolly/logback-akka/project/boot/update.log for complete log)
Error: Could not retrieve Scala 2.8.1

Mark Harrah

unread,
Jun 4, 2011, 9:13:07 PM6/4/11
to simple-b...@googlegroups.com
The junit dependency comes from jline 0.9.91. I don't know why the error occurs (I haven't heard similar problems), so you can try two things:
1) temporarily move ~/.m2/repository/jline somewhere else, try again, and move it back. You might try moving the whole ~/.m2/repository or ~/.ivy2/cache. (You could delete ~/.m2/repository and ~/.ivy2/cache if you don't mind redownloading things.)
2) post the full update.log

-Mark

Ivan Porto Carrero

unread,
Jun 5, 2011, 3:32:27 AM6/5/11
to simple-b...@googlegroups.com
as it turns out my ~/.m2 did have a pom for jline but not a jar.. after putting a jar there everything works.

Harlan Harris

unread,
Jul 14, 2011, 2:27:21 PM7/14/11
to simple-build-tool
FWIW, I had exactly this problem too, and I followed Mark's advice and
cleared the .m2 and .ivy2 repos/caches, let it re-pull everything, and
everything seems to be back to normal. Thanks!

-Harlan

Doug Tangren

unread,
Jul 14, 2011, 4:44:23 PM7/14/11
to simple-b...@googlegroups.com
I can second that. I had the same issue before and the same solution also worked for me.

-Doug Tangren
http://lessis.me


Reply all
Reply to author
Forward
0 new messages