aem-project-archetype icon indicating copy to clipboard operation
aem-project-archetype copied to clipboard

Generating a project with an artifact id starting with a number breaks the build

Open niekraaijmakers opened this issue 2 years ago • 0 comments

When you generate a project from the archetype, starting off with a number char, the build breaks.

filePath=jcr_root/conf/202180sandbox/settings/wcm/policies/.content.xml, nodePath=/conf/202180sandbox/settings/wcm/policies
11:36:46,775 [main] [INFO] ValidationViolation: "jackrabbit-filter: Ancestor node '/content/dam/202180sandbox' is not covered by any of the filter rules. Preferably depend on a package that provides this node or include it in the filter rules!", filePath=jcr_root/content/dam/202180sandbox/.content.xml

The reason is we use XML here like:

Screenshot 2021-08-12 at 14 15 02

We could prefix this XML with something like project- to prevent this, or we can provide some sort of constraint on the input or in the groovy script to check the artifactId starts with characters.

niekraaijmakers avatar Aug 12 '21 12:08 niekraaijmakers