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.depsdoes not addmodelVersion 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.
If you generate a
pom.xml
from "scratch" withtools.deps
, it includesmodelVersion
andpackaging
. The former is required according to the Maven spec and dependency management seems to misbehave when it is missing.If you specify
:src-pom
, thentools.deps
does not addmodelVersion
orpackaging
so your template must include them.If you specify
:pom-data
instead, then it is purely additive to whattools.deps
would create by default, somodelVersion
andpackagaing
are added.The cookbook should mention this important difference.