clojure-doc / clojure-doc.github.io

Clojure Guides | Getting Started With Clojure | Clojure Tutorials
https://clojure-doc.github.io
47 stars 16 forks source link

tools.build template pom.xml overrides certain defaults #67

Closed seancorfield closed 4 months ago

seancorfield commented 10 months ago

If you generate a pom.xml from "scratch" with tools.deps, it includes modelVersion and packaging. The former is required according to the Maven spec and dependency management seems to misbehave when it is missing.

If you specify :src-pom, then tools.deps does not add modelVersion or packaging so your template must include them.

If you specify :pom-data instead, then it is purely additive to what tools.deps would create by default, so modelVersion and packagaing are added.

The cookbook should mention this important difference.