Skip to content
andyk edited this page Dec 14, 2010 · 20 revisions

How to get and build SCADS

Using SBT

  1. Get the SCADS code with: git clone https://[email protected]/radlab/SCADS.git
  2. Create a shell script called "sbt" (optionally: somewhere in your path) with the following in it:
#!/bin/bash
java -noverify -Djava.library.path=/usr/local/mesos/lib/java -Xmx7G -XX:MaxPermSize=3G \
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -jar `dirname $0`/sbt-launch.jar "$@"
  1. download sbt-launch from http://cs.berkeley.edu/~marbrus/tmp/sbt-launch.jar and put it into the same directory as the above sbt script
  2. try it out by running sbt while in the top level directory of SCADS

NOTE: If you get an error that looks like the following, you should delete ~/.m2/repository and ~/.ivy2/cache.

:: problems summary ::
:::: WARNINGS
		[NOT FOUND  ] org.scala-lang#scala-compiler;2.8.0!scala-compiler.jar (76ms)

	==== Maven2 Local: tried

	  file:///Users/andyk/.m2/repository/org/scala-lang/scala-compiler/2.8.0/scala-compiler-2.8.0.jar

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

		::              FAILED DOWNLOADS            ::

		:: ^ see resolution messages for details  ^ ::

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

		:: org.scala-lang#scala-compiler;2.8.0!scala-compiler.jar

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



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
download failed: org.scala-lang#scala-compiler;2.8.0!scala-compiler.jar
Error during sbt execution: Error retrieving required libraries
  (see /Users/andyk/Development/SCADS/project/boot/update.log for complete log)
[error] Could not retrieve Scala 2.8.0

Using Maven

  1. get the SCADS code with: git clone https://[email protected]/radlab/SCADS.git
  2. update your ~/.m2/settings.xml like: http://radlab.cs.berkeley.edu/wiki/Infrastructure
  3. you can run mvn compile on the base directory, but it won't work. apparently, the code doesn't really work yet...
  4. just to get things compiling, you can go into the config, avro, comm directories (in that order) and run: mvn install
  5. then go to scalaengine, and run: mvn compile

TODO: Using Deploylib

Clone this wiki locally