diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2010-02-03 11:59:31 -0500 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2010-02-03 11:59:31 -0500 |
commit | 9b194dfd5a54d461c4cd5f8e3307f0949fcd04f1 (patch) | |
tree | 64ed640d967accdaab0dfac783c73d103bb6b614 | |
parent | ac67da72203c129173f3741d21f9b9285599d648 (diff) |
Re-enable local build with -Dclojure.jar in POM
-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 -o -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> |