diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2010-01-29 15:20:08 -0500 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2010-01-29 15:20:08 -0500 |
commit | 4e8696e773b7b1b121bab2e56d1fa233a2a28957 (patch) | |
tree | 4d2386012ee8f58dad6d91ce3ee428ecc6030b9d | |
parent | 66870bf5f01ae0a32bf8af32d548833816d75166 (diff) |
Reenable builds with local clojure.jar
Corrected POM still has Clojure as a dependency,
with an optional profile that allows specifying
the location of clojure.jar
-rw-r--r-- | README.txt | 5 | ||||
-rw-r--r-- | pom.xml | 20 |
2 files changed, 21 insertions, 4 deletions
@@ -68,10 +68,9 @@ to the mvn command line. If you want to compile/build with a customized clojure.jar file, use the following command: - mvn -Denv=local -Dclojure.jar=/path/to/clojure.jar package + mvn package -Dclojure.jar=/path/to/clojure.jar -The /path/to/clojure.jar MUST be an absolute path. It defaults to -${current-dir}/../clojure/clojure.jar if you do not specify it. +The /path/to/clojure.jar MUST be an absolute path. @@ -5,7 +5,6 @@ http://maven.apache.org/maven-v4_0_0.xsd"> <properties> <clojure.version>1.2.0-master-SNAPSHOT</clojure.version> - <clojure.jar>${basedir}/../clojure/clojure.jar</clojure.jar> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <modelVersion>4.0.0</modelVersion> @@ -51,6 +50,25 @@ </snapshots> </repository> </repositories> + <profiles> + <profile> + <id>local</id> + <activation> + <property> + <name>clojure.jar</name> + </property> + </activation> + <dependencies> + <dependency> + <groupId>org.clojure</groupId> + <artifactId>clojure</artifactId> + <version>${clojure.version}</version> + <scope>system</scope> + <systemPath>${clojure.jar}</systemPath> + </dependency> + </dependencies> + </profile> + </profiles> <build> <resources> <resource> |