diff options
author | Andreas Brenk <mail@andreasbrenk.com> | 2010-10-05 00:53:46 +0200 |
---|---|---|
committer | Andreas Brenk <mail@andreasbrenk.com> | 2010-10-05 00:54:04 +0200 |
commit | 21a8ba7a3bed01008388f842c47054539f83e76a (patch) | |
tree | 6074dab2299cac8ad293461b4534d68aeff290b4 | |
parent | f6ef99e78156d7f39ce91138183654c7f9205e24 (diff) |
Simplify building against a custom Clojure JAR.
Signed-off-by: Andreas Brenk <mail@andreasbrenk.com>
-rw-r--r-- | README.txt | 15 | ||||
-rw-r--r-- | modules/parent/pom.xml | 39 |
2 files changed, 34 insertions, 20 deletions
@@ -77,19 +77,8 @@ You can specify -Dclojure.version=VERSION on the command line to select a differ = Building Against a Custom Clojure JAR = -To build against a customized Clojure JAR, build *Clojure* like this: - -1. Modify the Clojure sources with your custom changes - -2. Set a custom version number in src/clj/clojure/version.properties - -3. Download maven-ant-tasks.jar from http://maven.apache.org/ant-tasks/download.html - -4. In the Clojure source directory, run: - - ant -lib /path/to/maven-ant-tasks.jar ci-build - -THEN, build clojure-contrib with -Dclojure.version=YOUR_CUSTOM_VERSION +To build against a customized Clojure JAR, you can specify +-Dclojure.jar=/absolute/path/to/clojure.jar on the command line. diff --git a/modules/parent/pom.xml b/modules/parent/pom.xml index 6c9c6f66..38488a40 100644 --- a/modules/parent/pom.xml +++ b/modules/parent/pom.xml @@ -11,13 +11,6 @@ <version>1.3.0-SNAPSHOT</version> <packaging>pom</packaging> <name>Clojure Contrib parent module</name> - <dependencies> - <dependency> - <groupId>org.clojure</groupId> - <artifactId>clojure</artifactId> - <version>${clojure.version}</version> - </dependency> - </dependencies> <build> <resources> <resource> @@ -64,6 +57,38 @@ </plugin> </plugins> </build> + <profiles> + <profile> + <id>default</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <dependencies> + <dependency> + <groupId>org.clojure</groupId> + <artifactId>clojure</artifactId> + <version>${clojure.version}</version> + </dependency> + </dependencies> + </profile> + <profile> + <id>custom-clojure</id> + <activation> + <property> + <name>clojure.jar</name> + </property> + </activation> + <dependencies> + <dependency> + <groupId>org.clojure</groupId> + <artifactId>clojure</artifactId> + <version>CUSTOM</version> + <scope>system</scope> + <systemPath>${clojure.jar}</systemPath> + </dependency> + </dependencies> + </profile> + </profiles> <repositories> <repository> <id>clojure-snapshots</id> |