Yep, I got the same thing yesterday.
See my message in the thread "Re: building new contrib against a
specific clojure jar" from last night for a patch that corrects this,
and causes 1.3.0-master-SNAPSHOT version of clojure to be used for
compilation everywhere in contrib instead of 1.2.0 version of Clojure.
Andy
On Sep 23, 2010, at 4:52 PM, Sean Corfield wrote:
As of yesterday, I built Clojure and Contrib from source successfully
and was able to run some Clojure programs. That was on my laptop.
Today I tried to do the same thing on my desktop and I'm hitting a
failure in mvn install during the test for monads.clj (if I'm reading
the output of Maven correctly).
My workflow to build from source is:
* cd clojure
* git pull
* ant -lib /path/to/maven-ant-tasks-2.1.1.jar ci-build
* mvn install
* cp clojure-1.3.0-SNAPSHOT.jar
~/.m2/repository/org/clojure/clojure/1.3.0-SNAPSHOT/clojure-1.3.0-
SNAPSHOT.jar
(I still seem to need to do this - slim and sources JAR files are
installed and look good but the main JAR is still empty otherwise)
* cd ../clojure-contrib
* git pull
* edit modules/parent/pom.xml and set clojure.version to 1.3.0-
SNAPSHOT
* edit any other pom.xml that refer to 1.2.0 (there are explicit
dependencies on Clojure versions due to AOT considerations according
to the notes in four files)
* mvn compile
* mvn install
FWIW, when this worked on my laptop, I had this in Leiningen and was
able to run programs fine:
:dependencies [[org.clojure/clojure "1.3.0-SNAPSHOT"]
[org.clojure.contrib/complete "1.3.1-SNAPSHOT" :classifier "bin"]]
That all worked on my laptop. Below is the error I get on my desktop.
clojure.set not found? I fixed it by adding the following to
accumulators.clj:
(:use [clojure.set :only (union)])
Is this just a bug in accumulators.clj or something weird in my
environment?
Thanx,
Sean
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed - org.clojure.contrib:monads:jar:1.3.1-
SNAPSHOT
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory
/Developer/workspace/clojure-contrib/modules/monads/src/examples/
clojure
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [clojure:compile {execution: compile-clojure}]
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/Developer/workspace/clojure-contrib/modules/monads/target/surefire-
reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [clojure:test {execution: test-clojure}]
Exception in thread "main" java.lang.ClassNotFoundException:
clojure.set, compiling:(accumulators.clj:121)
at clojure.lang.Compiler.analyze(Compiler.java:5777)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$StaticInvokeExpr.parse(Compiler.java:3093)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3317)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5945)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3331)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5945)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5131)
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:4639)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3449)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5941)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5931)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:847)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5943)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5131)
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:4639)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3449)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5941)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.eval(Compiler.java:5995)
at clojure.lang.Compiler.load(Compiler.java:6431)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4395.invoke(core.clj:5298)
at clojure.core$load.doInvoke(core.clj:5297)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:5122)
at clojure.core$load_lib.doInvoke(core.clj:5159)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invokeStatic(core.clj:585)
at clojure.core$load_libs.doInvoke(core.clj:5193)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invokeStatic(core.clj:585)
at clojure.core$require.doInvoke(core.clj:5202)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.contrib.monads
$eval11$loading__4294__auto____12.invoke(monads.clj:14)
at clojure.contrib.monads$eval11.invoke(monads.clj:14)
at clojure.lang.Compiler.eval(Compiler.java:5998)
at clojure.lang.Compiler.eval(Compiler.java:5989)
at clojure.lang.Compiler.load(Compiler.java:6431)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4395.invoke(core.clj:5298)
at clojure.core$load.doInvoke(core.clj:5297)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:5122)
at clojure.core$load_lib.doInvoke(core.clj:5159)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invokeStatic(core.clj:585)
at clojure.core$load_libs.doInvoke(core.clj:5193)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invokeStatic(core.clj:587)
at clojure.core$use.doInvoke(core.clj:5264)
at clojure.lang.RestFn.invoke(RestFn.java:422)
at clojure.contrib.test_monads
$eval5$loading__4294__auto____6.invoke(test_monads.clj:14)
at clojure.contrib.test_monads$eval5.invoke(test_monads.clj:14)
at clojure.lang.Compiler.eval(Compiler.java:5998)
at clojure.lang.Compiler.eval(Compiler.java:5989)
at clojure.lang.Compiler.load(Compiler.java:6431)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4395.invoke(core.clj:5298)
at clojure.core$load.doInvoke(core.clj:5297)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:5122)
at clojure.core$load_lib.doInvoke(core.clj:5159)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invokeStatic(core.clj:585)
at clojure.core$load_libs.doInvoke(core.clj:5193)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invokeStatic(core.clj:585)
at clojure.core$require.doInvoke(core.clj:5202)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at user$eval1.invoke(run-test6126986009298512503.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5998)
at clojure.lang.Compiler.load(Compiler.java:6431)
at clojure.lang.Compiler.loadFile(Compiler.java:6394)
at clojure.main$load_script.invoke(main.clj:216)
at clojure.main$script_opt.invoke(main.clj:268)
at clojure.main$main.doInvoke(main.clj:349)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.lang.Var.invoke(Var.java:365)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.ClassNotFoundException: clojure.set
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:58)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at clojure.lang.RT.classForName(RT.java:1596)
at clojure.lang.Compiler$HostExpr.maybeClass(Compiler.java:868)
at clojure.lang.Compiler$HostExpr.access$400(Compiler.java:669)
at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6145)
at clojure.lang.Compiler.analyze(Compiler.java:5744)
... 99 more
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Clojure failed.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 7 seconds
[INFO] Finished at: Thu Sep 23 16:19:31 PDT 2010
[INFO] Final Memory: 33M/81M
[INFO]
------------------------------------------------------------------------
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient
with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en