OK, it appears one more line of change allows clojure-contrib latest as of today to build with clojure 1.3.0-master-SNAPSHOT. See inline below for slightly modified instructions that worked for me on both OS X and Ubuntu Linux.

On Sep 22, 2010, at 6:16 PM, Andy Fingerhut wrote:

So I'm trying to start from a Mac OS X 10.5.8 system with java and mvn installed, but not Clojure, and with no Maven repo (i.e. ~/.m2 does not exist yet), and trying to build the latest Clojure and contrib from the git repos using something as close to the recommended instructions that comes in those repos as I can find, plus what I've learned from this thread. I've gotten the latest Clojure to build and install in ~/.m2, but when I try to use that clojure-1.3.0-master-SNAPSHOT.jar to build contrib, it fails.

Here are the steps I took to build Clojure:

% git clone http://github.com/clojure/clojure.git
% cd clojure

[ downloaded maven-ant-tasks-2.1.1.jar and saved it here: /Users/ Shared/sw/maven-ant-tasks-2.1.1.jar ]

% ant -lib /Users/Shared/sw/maven-ant-tasks-2.1.1.jar ci-build

Verified that I now have an ~/.m2 directory tree, and it contains this file, among others:

~/.m2/repository/org/clojure/clojure/1.3.0-master-SNAPSHOT/ clojure-1.3.0-master-SNAPSHOT.jar

Now try to use that to build contrib using these commands:

% cd ..
% git clone http://github.com/clojure/clojure-contrib.git
% cd clojure-contrib

Now do this with the attached patch file:

% patch -p1 < clojure-contrib-patch.txt
% mvn install

After that, I had clojure, contrib, and a bunch of other dependencies in my Maven repo in ~/.m2

I'm guessing that the "patch" step above will soon be unnecessary when the contrib maintainers decide how best to improve it. I'm just going for the quick and dirty fix here.

Andy


diff --git 
a/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj 
b/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj
index 55073e3..12bb7c6 100644
--- a/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj
+++ b/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj
@@ -24,6 +24,7 @@
            accumulators."}
   clojure.contrib.accumulators
   (:refer-clojure :exclude (deftype))
+  (:use [clojure.set :only (union)])
   (:use [clojure.contrib.types :only (deftype)])
   (:use [clojure.contrib.def :only (defvar defvar- defmacro-)])
   (:require [clojure.contrib.generic.arithmetic :as ga]))
diff --git a/modules/condition/pom.xml b/modules/condition/pom.xml
index 0a2d9e5..751f48f 100644
--- a/modules/condition/pom.xml
+++ b/modules/condition/pom.xml
@@ -13,7 +13,7 @@
     <dependency>
       <groupId>org.clojure</groupId>
       <artifactId>clojure</artifactId>
-      <version>1.2.0</version>
+      <version>1.3.0-master-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.clojure.contrib</groupId>
diff --git a/modules/fnmap/pom.xml b/modules/fnmap/pom.xml
index d6b13ff..908f4fc 100644
--- a/modules/fnmap/pom.xml
+++ b/modules/fnmap/pom.xml
@@ -13,7 +13,7 @@
     <dependency>
       <groupId>org.clojure</groupId>
       <artifactId>clojure</artifactId>
-      <version>1.2.0</version>
+      <version>1.3.0-master-SNAPSHOT</version>
     </dependency>
   </dependencies>
   <build>
diff --git a/modules/jmx/pom.xml b/modules/jmx/pom.xml
index ef49604..8e7233b 100644
--- a/modules/jmx/pom.xml
+++ b/modules/jmx/pom.xml
@@ -13,7 +13,7 @@
     <dependency>
       <groupId>org.clojure</groupId>
       <artifactId>clojure</artifactId>
-      <version>1.2.0</version>
+      <version>1.3.0-master-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.clojure.contrib</groupId>
diff --git a/modules/parent/pom.xml b/modules/parent/pom.xml
index 6965302..1903aa2 100644
--- a/modules/parent/pom.xml
+++ b/modules/parent/pom.xml
@@ -3,7 +3,7 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>
   <properties>
-    <clojure.version>1.2.0</clojure.version>
+    <clojure.version>1.3.0-master-SNAPSHOT</clojure.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>
   <groupId>org.clojure.contrib</groupId>
diff --git a/modules/repl-ln/pom.xml b/modules/repl-ln/pom.xml
index 143de26..a823f36 100644
--- a/modules/repl-ln/pom.xml
+++ b/modules/repl-ln/pom.xml
@@ -13,7 +13,7 @@
     <dependency>
       <groupId>org.clojure</groupId>
       <artifactId>clojure</artifactId>
-      <version>1.2.0</version>
+      <version>1.3.0-master-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.clojure.contrib</groupId>

-- 
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

Reply via email to