I try to use the newest Versoin of filevault-package-maven-plugin.
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<version>1.1.4</version>
Everything ist working ok. But I tried to add my sling mappings under /etc/map in the project (as usual). But this is not working.
I found an article, that descriibes where to put the different folders. But they missed the /etc/map Folder for Sling Mappings
https://wcm-io.atlassian.net/wiki/spaces/WCMIO/pages/1353056261/How+to+make+your+content+packages+co...
I tried to set the /etc/map folder as "validRoot", but same Error, I even tried to move the etc Folder under /apps/etc, the Problem was still there.
Here is a sample of the error. it doesn't matter if the folder is in /etc oder /apps/etc.
[WARNING] ValidationViolation: "jackrabbit-nodetypes: Invalid primary type sling:Mapping: 'sling: is not a registered namespace prefix.'. Skip validation of nodes with that type/name", filePath=jcr_root\apps\etc\map\local\http\.content.xml, nodePath=/apps/etc/map/local/http, line=4, column=56
[ERROR] ValidationViolation: "jackrabbit-filter: Ancestor node '/apps/etc/map/local/http' 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\apps\etc\map\local\http\.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Ancestor node '/apps/etc/map/entw/https' 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\apps\etc\map\entw\https\.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Ancestor node '/apps/etc/map/test/https' 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\apps\etc\map\test\https\.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Ancestor node '/apps/etc/map/qual/https' 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\apps\etc\map\qual\https\.content.xml
[ERROR] ValidationViolation: "jackrabbit-filter: Ancestor node '/apps/etc/map/prod/https' 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\apps\etc\map\prod\https\.content.xml
But the errors are different: I know that the Package "Application" just can use "/libs" and "/apps". But where do I have to put "/etc/map"?
[ERROR] ValidationViolation: "jackrabbit-packagetype: Package of type 'APPLICATION' is not supposed to contain content outside '/libs' and '/apps'!", filePath=jcr_root\etc\map\prod\https
Does anybody know how to Configure the "etc/map" Folders, that they will be installed with the Project? Or are there new solutions for that? I found no description or tutorials for that problem.
For Help I used those links:
https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/developing/repo...
https://jackrabbit.apache.org/filevault/validation.html
https://docs.adobe.com/content/help/de-DE/experience-manager-64/deploying/configuring/resource-mappi...
https://github.com/adobe/aem-guides-wknd