Merge branch 'master' of git@github.com:apache/sling-org-apache-sling-repoinit-filevault-validator.git
tree: f803f1e39151c959560c2e4c9266b00a6d3b9113
  1. src/
  2. .asf.yaml
  3. .gitignore
  4. .sling-module.json
  5. CODE_OF_CONDUCT.md
  6. CONTRIBUTING.md
  7. Jenkinsfile
  8. LICENSE
  9. pom.xml
  10. README.md
README.md

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central repoinit License

Apache Sling Repo Init FileVault Validator

This module is part of the Apache Sling project.

It implements a FileVault validator for the Repository Initialization language used in serialized OSGi configurations. It emits validation error messages for invalid repoinit statements.

Usage with Maven

You can use this validator with the FileVault Package Maven Plugin in version 1.3.2 or higher like this (although from an API level it is compatible with 1.3.0 and FileVault Validation 3.6.0 it needs minimally FileVault validation 3.6.4 or newer due to JCRVLT-637, which is included in 1.3.2 by default).

<plugin>
  <groupId>org.apache.jackrabbit</groupId>
  <artifactId>filevault-package-maven-plugin</artifactId>
  <dependencies>
    <dependency>
      <groupId>org.apache.sling</groupId>
      <artifactId>org.apache.sling.repoinit.filevault.validator</artifactId>
      <version><latestversion></version>
    </dependency>
    <!-- use the following dependency to optionally overwrite the used repoinit parser version (default=1.9.0) -->
    <dependency>
      <groupId>org.apache.sling</groupId>
      <artifactId>org.apache.sling.repoinit.parser</artifactId>
      <version><version of the parser in the runtime where my config is deployed to></version>
    </dependency>
  </dependencies>
</plugin>