Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-681

validate-files: Files which don't end up in the package are validated

    XMLWordPrintableJSON

Details

    Description

      Files like .gitignore are not part of the content package but still validated via goal validate-files.

      This may lead to errors like

      [INFO] --- filevault-package-maven-plugin:1.3.2:validate-files (default-validate-files) @ ... ---
      [INFO] Validate files in generatedMetaInfRootDirectory 'target/vault-work/META-INF' and metaInfRootDir 'target/vault-work/META-INF'
      [INFO] Using 14 validators for package of type CONTAINER: jackrabbit-accesscontrol (org.apache.jackrabbit.vault.validation.spi.impl.AccessControlValidator), jackrabbit-filter (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedFilterValidator), jackrabbit-properties (org.apache.jackrabbit.vault.validation.spi.impl.AdvancedPropertiesValidator), jackrabbit-docviewparser (org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator), netcentric-aem-classification (biz.netcentric.filevault.validator.aem.classification.AemClassificationValidator), netcentric-aem-cloud (biz.netcentric.filevault.validator.aem.cloud.AemCloudValidator), sling-repoinit (org.apache.sling.repoinit.filevault.validator.RepoInitValidator), jackrabbit-dependencies (org.apache.jackrabbit.vault.validation.spi.impl.DependencyValidator), jackrabbit-duplicateuuid (org.apache.jackrabbit.vault.validation.spi.impl.DuplicateUuidValidator), jackrabbit-emptyelements (org.apache.jackrabbit.vault.validation.spi.impl.EmptyElementsValidator), jackrabbit-mergelimitations (org.apache.jackrabbit.vault.validation.spi.impl.MergeLimitationsValidator), jackrabbit-oakindex (org.apache.jackrabbit.vault.validation.spi.impl.OakIndexDefinitionValidator), jackrabbit-packagetype (org.apache.jackrabbit.vault.validation.spi.impl.PackageTypeValidator), jackrabbit-nodetypes (org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator)
      [INFO] Scanning baseDir 'target/vault-work/META-INF'...
      [INFO] Scanning path 'target/vault-work/META-INF'...
      [INFO] Scanning path 'target/vault-work/META-INF/MANIFEST.MF'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault/config.xml'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault/definition'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault/filter.xml'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault/properties.xml'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault/settings.xml'...
      [INFO] Scanning path 'target/vault-work/META-INF/vault/definition/.content.xml'...
      [INFO] Scanning baseDir 'src/main/jcr_root'...
      [INFO] Scanning path 'src/main/jcr_root'...
      [INFO] Scanning path 'src/main/jcr_root/.gitignore'...
      [ERROR] ValidationViolation: Node '/.gitignore' is not contained in any of the filter rules @ src/main/jcr_root/.gitignore, validator: jackrabbit-filter
      [WARNING] ValidationViolation: Property 'jcr:data' [Binary] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type! @ src/main/jcr_root/.gitignore, validator: jackrabbit-nodetypes, JCR node path: /.gitignore
      [WARNING] ValidationViolation: Property 'jcr:mimeType' [String] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type! @ src/main/jcr_root/.gitignore, validator: jackrabbit-nodetypes, JCR node path: /.gitignore
      [WARNING] ValidationViolation: Property 'jcr:lastModified' [Date] is not allowed in node with potential default types [nt:folder]: No applicable property definition found for name and type! @ src/main/jcr_root/.gitignore, validator: jackrabbit-nodetypes, JCR node path: /.gitignore
      [ERROR] ValidationViolation: Using mutable nodes in this repository location is only allowed in author-specific packages as it is not writable by the underlying service user on a publish instance. Consider to use repoinit scripts instead or move that content to another location. Further details at https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/debugging/debugging-aem-as-a-cloud-service/build-and-deployment.html?lang=en#including-%2Fvar-in-content-package @ src/main/jcr_root/.gitignore, validator: netcentric-aem-cloud, JCR node path: /.gitignore
      ...
      
      

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: