From b74910600b88870b29e58b1d7e98ad6f6f3e489c Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Sun, 15 Jun 2014 17:04:12 -0700 Subject: [PATCH] Fix write-pom-properties to work when outside project dir. --- leiningen-core/src/leiningen/core/eval.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leiningen-core/src/leiningen/core/eval.clj b/leiningen-core/src/leiningen/core/eval.clj index 4a5375897..2347ccaa9 100644 --- a/leiningen-core/src/leiningen/core/eval.clj +++ b/leiningen-core/src/leiningen/core/eval.clj @@ -33,7 +33,7 @@ ;; # Preparing for eval-in-project (defn- write-pom-properties [{:keys [compile-path group name] :as project}] - (when-not (:disable-pom-properties project) + (when (and (:root project) (:write-pom-properties project true)) (let [path (format "%s/META-INF/maven/%s/%s/pom.properties" compile-path group name)] (.mkdirs (.getParentFile (io/file path)))