wttech / gradle-aem-plugin

Swiss army knife for Adobe Experience Manager related automation. Environment setup & incremental AEM application build which takes seconds, not minutes.
https://tech.cognifide.com/tag/gradle-aem-plugin
Apache License 2.0
157 stars 32 forks source link

Package checking (ZIP contents & VLT filters) #430

Closed pun-ky closed 4 years ago

pun-ky commented 4 years ago

Built CRX package ZIP contents (files or directories) could be not listed under any root of VLT filter. It does not make sense, because such package contains data which will be not installed on AEM.

It would be nice, if packageCheck task will perform such checking or we introduce separate packageCheck task which will perform such validation.

Such validation could work in 2 ways

Also, GAP has currently fileFilter which is filtering / warning about non-OSGI bundles inside /install path. This feature could be moved to packageCheck task.

pun-ky commented 4 years ago

also static package analysis could be done by using http://adamcin.net/oakpal/ as of GAP could use Docker based features in a same way as it is controlling HTTPD with Dispatcher module

or just using http://adamcin.net/granite-client-packman/apidocs/net/adamcin/granite/client/packman/validation/PackageValidator.html

pun-ky commented 4 years ago

whole oakpal should be used, not only package validator..

while we have a docker we could use prepared docker image, without adding cnd.cnd the result of running it is:

krystian.panek@AQUA MINGW64 ~/Projects/gradle-aem-multi/aem/assembly/full/build/aem/packageCompose (master)
$ docker run -v $(pwd):/work adamcin/oakpal example.full-1.0.0-SNAPSHOT.zip
[main] ERROR org.apache.jackrabbit.vault.packaging.impl.InstallHookProcessorImpl - Error while initializing hook: org.apache.jackrabbit.vault.packaging.PackageException: hook's main class biz.netcentric.cq.tools.actool.installhook.AcToolInstallHook not found: actool
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /apps/example: javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Folder does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example (javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Folder does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/config (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/config/org.apache.sling.engine.parameters (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/config.publish (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/install (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/install/jsoup-1.10.2.jar (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/install/aem-sass-compiler-1.0.1.jar (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/common/install/example.common-1.0.0-SNAPSHOT.jar (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author/css (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author/css/main.scss (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author/js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author/js/main.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author/css.txt (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/author/js.txt (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/dist (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/dist/main.bundle.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/dist/main.css (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/libs (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/libs/bootstrap.min.css (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/resources (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/resources/fonts (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/resources/img (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/resources/img/logo.png (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/resources/styles (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/js/config.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/js/main.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/styles (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/styles/main.scss (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/styles/_layout.scss (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack/modules (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack/modules/babel.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack/modules/production.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack/modules/styles.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack/index.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/.babelrc (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/.eslintrc (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/.stylelintrc (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/src/webpack.config.js (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/css.txt (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/clientlibs/page/publish/js.txt (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/components (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/components/home-page (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/components/home-page/home-page.html (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/config (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/config.author (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/config.publish (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/install (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/install/example.sites-1.0.0-SNAPSHOT.jar (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/permissions (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/permissions/testgroup.author (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/permissions/testgroup.author/config.yaml (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/permissions/testgroup2.author.int (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/permissions/testgroup2.author.int/config.yaml (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/templates (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/example/sites/templates/home-page (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /apps/settings/wcm/designs/example: javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Folder does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/settings/wcm/designs/example (javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Folder does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /apps/settings/wcm/designs/example/sites (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /etc/replication/agents.publish/flush: javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/replication/agents.publish/flush (javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /etc/replication/agents.author/publish: javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/replication/agents.author/publish (javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /etc/map.publish/http/demo.example.com: javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Mapping does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/map.publish/http/demo.example.com (javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Mapping does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/map.publish/http/demo.example.com/clientlibs (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /etc/map.publish/http/example.com: javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Mapping does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/map.publish/http/example.com (javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Mapping does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/map.publish/http/example.com/clientlibs (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /etc/map.publish/http/example.com/libs (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /content/example/demo: javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/example/demo (javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/example/demo/en-gb (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/example/demo/en-us (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /content/example/live: javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/example/live (javax.jcr.nodetype.NoSuchNodeTypeException: Node type cq:Page does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/example/live/en-us (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter - Error during processing of /content/dam/example: javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Folder does not exist
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example (javax.jcr.nodetype.NoSuchNodeTypeException: Node type sling:Folder does not exist)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content/renditions (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.thumbnail.140.100.png (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.thumbnail.319.319.png (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.thumbnail.48.48.png (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.web.1280.1280.png (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/original (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/jcr:content (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/common/jcr:content/folderThumbnail (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/jcr:content (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E /content/dam/example/jcr:content/folderThumbnail (java.lang.IllegalStateException: Parent node not found.)
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - There were errors during package install. Please check the logs for details.
report: DefaultErrorListener
 +- <MAJOR> InstallHook error: java.lang.ClassNotFoundException "hook's main class biz.netcentric.cq.tools.actool.installhook.AcToolInstallHook not found: actool" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type sling:Folder does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/config - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/config/org.apache.sling.engine.parameters - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/config.publish - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/install - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/install/jsoup-1.10.2.jar - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/install/aem-sass-compiler-1.0.1.jar - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/common/install/example.common-1.0.0-SNAPSHOT.jar - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author/css - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author/css/main.scss - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author/js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author/js/main.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author/css.txt - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/author/js.txt - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/dist - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/dist/main.bundle.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/dist/main.css - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/libs - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/libs/bootstrap.min.css - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/resources - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/resources/fonts - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/resources/img - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/resources/img/logo.png - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/resources/styles - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/js/config.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/js/main.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/styles - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/styles/main.scss - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/styles/_layout.scss - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack/modules - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack/modules/babel.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack/modules/production.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack/modules/styles.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack/index.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/.babelrc - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/.eslintrc - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/.stylelintrc - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/src/webpack.config.js - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/css.txt - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/clientlibs/page/publish/js.txt - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/components - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/components/home-page - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/components/home-page/home-page.html - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/config - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/config.author - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/config.publish - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/install - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/install/example.sites-1.0.0-SNAPSHOT.jar - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/permissions - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/permissions/testgroup.author - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/permissions/testgroup.author/config.yaml - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/permissions/testgroup2.author.int - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/permissions/testgroup2.author.int/config.yaml - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/templates - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/example/sites/templates/home-page - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/settings/wcm/designs/example - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type sling:Folder does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /apps/settings/wcm/designs/example/sites - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/replication/agents.publish/flush - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type cq:Page does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/replication/agents.author/publish - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type cq:Page does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/map.publish/http/demo.example.com - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type sling:Mapping does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/map.publish/http/demo.example.com/clientlibs - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/map.publish/http/example.com - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type sling:Mapping does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/map.publish/http/example.com/clientlibs - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /etc/map.publish/http/example.com/libs - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/example/demo - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type cq:Page does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/example/demo/en-gb - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/example/demo/en-us - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/example/live - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type cq:Page does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/example/live/en-us - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example - Importer error: javax.jcr.nodetype.NoSuchNodeTypeException "Node type sling:Folder does not exist" [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content/renditions - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.thumbnail.140.100.png - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.thumbnail.319.319.png - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.thumbnail.48.48.png - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/cq5dam.web.1280.1280.png - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/cognifide-logo.png/jcr:content/renditions/original - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/jcr:content - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/common/jcr:content/folderThumbnail - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/jcr:content - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
 +- <MAJOR> /content/dam/example/jcr:content/folderThumbnail - Importer error: java.lang.IllegalStateException "Parent node not found." [example.full-1.0.0-SNAPSHOT.zip]
report: net.adamcin.oakpal.core/basic/paths
report: net.adamcin.oakpal.core/basic/subpackages
report: net.adamcin.oakpal.core/basic/acHandling
report: net.adamcin.oakpal.core/basic/filterSets
 +- <MINOR> non-default import mode UPDATE defined for filterSet with root /content/example/live [example.full-1.0.0-SNAPSHOT.zip]
report: net.adamcin.oakpal.core/basic/overlaps

which is really nice, when providing cnd.cnd file and dealing with hooks ... it should be very valuable

pun-ky commented 4 years ago

consider plan configuration https://github.com/adamcin/oakpal/blob/master/core/src/test/resources/OakpalPlanTest/fullPlan.json

pun-ky commented 4 years ago

consider https://www.bounteous.com/insights/2019/07/23/oakpal-build-validations/ https://github.com/Adobe-Consulting-Services/acs-aem-commons/tree/master/oakpal-checks https://mvnrepository.com/artifact/com.adobe.acs/acs-aem-commons-oakpal-checks/4.3.4

pun-ky commented 4 years ago

ok working PoC done in #487

TODO

  1. automatic nodetypes.cnd downloading
  2. merging downloaded nodetypes.cnd when assembling
  3. considering validation configuration as input of packageCompose task
  4. considering validation report as output of packageCompose task
pun-ky commented 4 years ago

closing as released in 8.1.0