Simple-Build-Tool: Error Getting Started

in
Auteur: 
François Beausoleil

I’m starting in Scala, because Seevibes’ code is in Scala. Scala has a tool named simple-build-tool for managing your projects. sbt is similar to Ruby’s Bundler and Clojure’s Leiningen in that it manages dependencies and helps build a project for you.

Unfortunately, I had problems getting started. After following the Setup instructions, I was consistently getting this error:

1 Getting org.scala-tools.sbt sbt_2.8.1 0.10.1 ...
2
3 :: problems summary ::
4 :::: WARNINGS
5 [NOT FOUND ] commons-logging#commons-logging;1.0.4!commons-logging.jar (5ms)
6
7 ==== Maven2 Local: tried
8
9 file:///Users/francois/.m2/repository/commons-logging/commons-logging/1....
10
11 ::::::::::::::::::::::::::::::::::::::::::::::
12
13 :: FAILED DOWNLOADS ::
14
15 :: ^ see resolution messages for details ^ ::
16
17 ::::::::::::::::::::::::::::::::::::::::::::::
18
19 :: commons-logging#commons-logging;1.0.4!commons-logging.jar
20
21 ::::::::::::::::::::::::::::::::::::::::::::::
22
23
24
25 :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
26 download failed: commons-logging#commons-logging;1.0.4!commons-logging.jar
27 Error during sbt execution: Error retrieving required libraries
28 (see /Users/francois/Projects/project/boot/update.log for complete log)
29 Error: Could not retrieve sbt 0.10.1

I hit #scala and RSchulz pointed me to ~/.ivy2. After I rm -rf’d ~/.ivy2 and ~/.m2, sbt ran to completion. I was unable to find any mentions of the errors above, so hopefully this may help someone else.