Skip to content
Browse files

Re-enable local build with -Dclojure.jar in POM

  • Loading branch information...
1 parent ac67da7 commit 9b194dfd5a54d461c4cd5f8e3307f0949fcd04f1 @stuartsierra stuartsierra committed Feb 3, 2010
Showing with 21 additions and 4 deletions.
  1. +2 −3 README.txt
  2. +19 −1 pom.xml
View
5 README.txt
@@ -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.
View
20 pom.xml
@@ -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>

0 comments on commit 9b194df

Please sign in to comment.
Something went wrong with that request. Please try again.