Be more tolerant of empty project maps.
This commit is contained in:
parent
2437897ee1
commit
0bc8bd28ae
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
||||||
(defn- write-pom-properties [{:keys [compile-path group name] :as project}]
|
(defn- write-pom-properties [{:keys [compile-path group name] :as project}]
|
||||||
(when (and (:root project) (:write-pom-properties project true))
|
(when (and (:root project) (:write-pom-properties project true))
|
||||||
(let [path (format "%s/META-INF/maven/%s/%s/pom.properties"
|
(let [path (format "%s/META-INF/maven/%s/%s/pom.properties"
|
||||||
compile-path group name)]
|
(or compile-path "target/classes") group name)]
|
||||||
(utils/mkdirs (.getParentFile (io/file path)))
|
(utils/mkdirs (.getParentFile (io/file path)))
|
||||||
(spit path (project/make-project-properties project)))))
|
(spit path (project/make-project-properties project)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue