Use :without-profiles when calculating pom for inclusion in jar. Fixes #537.

This commit is contained in:
Phil Hagelberg 2012-04-24 14:15:15 -07:00
parent 4b63f9a953
commit d85f2fba4d

View file

@ -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)))