Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.build by

I have a project that generates more than one jar artifact. For project A, I have ./pom.xml that is used as a template and everything works fine.

For project B, I want to generate a pom.xml that's completely separate from project A which does not use ./pom.xml as a template. I generate the pom as follows:

(require '[clojure.tools.build.api :as b])
(b/write-pom {:class-dir class-dir
                  :pom-data pom-data
                  :lib coord
                  :version version
                  :basis basis})

However, since ./pom.xml exists, it is used as a template. Explicitly passing nil for :src-pom doesn't help. The only workaround I could find was to pass in a bogus path for :src-pom.

Please log in or register to answer this question.

...