Apache Sling JCR RepoInit module

Clone this repo:
  1. d3a8098 SLING-9857 - adapt for parser module SNAPSHOT by Bertrand Delacretaz · 2 days ago master
  2. 1ed447a Adding sonarqube badges as per SLING-9682 by Dan Klco · 5 months ago
  3. ed2a73c Updating badges for org-apache-sling-jcr-repoinit by Radu Cotescu · 5 months ago
  4. a797044 [maven-release-plugin] prepare for next development iteration by Andrei Dulvac · 9 months ago
  5. af87d80 [maven-release-plugin] prepare release org.apache.sling.jcr.repoinit-1.1.28 by Andrei Dulvac · 9 months ago org.apache.sling.jcr.repoinit-1.1.28

Apache Sling

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

Apache Sling JCR RepoInit module

This module is part of the Apache Sling project.

This module implements Repository Initalization operations for the Sling repoinit modules, operations that can initialize content, service users and privileges in a JCR content repository.

The user documentation for the Sling Repoinit modules is at https://sling.apache.org/documentation/bundles/repository-initialization.html

Updating to a newer version of Jackrabbit Oak

The Oak version (and the associated Jackrabbit version) must be maintained in two locations:

  • pom.xml for build and unit testing
  • src/test/features for integration testing

Since the integration tests rely on the Sling Starter to provide the the base instance values, it happens that the Oak version used by repoinit is more recent than the one provided in the starter.

We should not depend on SNAPSHOT starter versions, since this bundle is released more often than the Starter. Therefore the recommended approach is to override the needed bundles in the following manner:

  • in src/test/provisioning/sling.txt - all bundles from the Sling Starter part of the ‘sling.txt’ feature
  • in src/test/provisioning/oak.txt - all bundles from the Sling Starter part of the ‘oak.txt’ feature

For a more concrete example, see SLING-8627 - Update sling-jcr-repoinit to Oak 1.16.0 and Jackrabbit 2.18 and associated commits.