Scala SBT / Maven2 Error in OSX: "Error opening Zip file" & # 8594; MissingRequirementError

I have a project that builds well on Unix blocks ( http://www.github.com/jhclark/ducttape ).

However, using SBT 0.11.2 (and several other versions of SBT), it will not be built on my Mac (OSX 10.5). I get the following critical error message:

$ ~/bin/sbt compile                                       (master*? 20:11)
[info] Loading project definition from /Users/jon/Documents/workspace-    scala/ducttape/project
[info] Set current project to ducttape (in build file:/Users/jon/Documents/workspace-scala/ducttape/)
[info] Compiling 104 Scala sources to /Users/jon/Documents/workspace-scala/ducttape/target/scala-2.9.2/classes...
[error] error while loading <root>, error in opening zip file
[error] {file:/Users/jon/Documents/workspace-scala/ducttape/}default-024416/compile:compile: scala.tools.nsc.MissingRequirementError: object scala not found.
[error] Total time: 2 s, completed May 27, 2012 8:12:09 PM

This happens even after I carefully sort things out:

sbt clean clean-files
rm -rf ~/.ivy2 ~/.m2 ~/.sbt

I suspect that a real error occurs in Maven2, which SBT uses to manage dependencies (see also Maven: error opening zip file when maven starts ).

However, I worry after a few days. Any ideas?

+5
source share
3

sbt-extras sbt-0.11.3. , , 404. sbt-extras launcher ​​ sbt-0.11.3.

, scala -tools.org. , sbt-0.11.3.

0.11.2, 0.11.3-2, sbt.version=0.11.2 project/build.properties scalaTools build.sbt. SBT.

, - .jar -.

find ~/.ivy2 ~/.m2 ~/.sbt -name "*.jar" -exec unzip -qqt {} \;, , . , .

+7

, zip/jar.

, Dave , .

, , ./lib. , , - .

PS: !

+2

( OSX Scala 2.10.2), - SBT Scala ( ).

I put the JAR in / Library / Java / Home / lib / ext / for other reasons, but did not make it accessible to the group and the world. Only root (the owner) could read it. I changed permissions and voila. Scala and SBT are working again.

cd /Library/Java/Home/lib/ext
sudo chmod g+r bcprov-jdk15on-1.47.jar
sudo chmod g+a bcprov-jdk15on-1.47.jar
+1
source

All Articles