Add ability to add arbitary content to generated pom file

Example:

Add to the project.clj file:

  :pom-addition [:developers [:developer [:name "My Name"]]]

The above will add an element to the generated pom file:

<developers> <developer> <name>My Name</name> </developer> </developers>
This commit is contained in:
Esa Laine 2012-08-01 10:41:20 -04:00
parent 97ea257186
commit f6ea9031a3

View file

@ -299,7 +299,8 @@
(distinct (map (partial test-scope-excluded (distinct (map (partial test-scope-excluded
(:dependencies project)) (:dependencies project))
(concat (:dependencies project) (concat (:dependencies project)
(:dependencies test-project)))))])))) (:dependencies test-project)))))
(when (:pom-addition project) (:pom-addition project))]))))
(defn snapshot? [project] (defn snapshot? [project]
(re-find #"SNAPSHOT" (:version project))) (re-find #"SNAPSHOT" (:version project)))