From d85f2fba4dcf5333ea4ce18b8958b2c3cfd6525e Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Tue, 24 Apr 2012 14:15:15 -0700 Subject: [PATCH] Use :without-profiles when calculating pom for inclusion in jar. Fixes #537. --- src/leiningen/jar.clj | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/leiningen/jar.clj b/src/leiningen/jar.clj index 7f78a6aa..bba3471e 100644 --- a/src/leiningen/jar.clj +++ b/src/leiningen/jar.clj @@ -188,8 +188,11 @@ Create a $PROJECT-$VERSION.jar file containing project's source files as well as .class files if applicable. If project.clj contains a :main key, the -main function in that namespace will be used as the main-class for executable jar." [project] - (eval/prep (:without-profiles (meta project) project)) - (let [jar-file (get-jar-filename project)] - (write-jar project jar-file (filespecs project [])) - (main/info "Created" (str jar-file)) - jar-file)) + ;; TODO: we should just remove the default profiles, not use :without-profiles + ;; Fix once #512 lands + (let [project (:without-profiles (meta project) project)] + (eval/prep project) + (let [jar-file (get-jar-filename project)] + (write-jar project jar-file (filespecs project [])) + (main/info "Created" (str jar-file)) + jar-file)))