Apache Sling Feature Model - Content Deployment Extension

Clone this repo:
  1. 1da45ce SLING-12866 - Restrict force pushes, auto-delete branches on merge by Robert Munteanu · 2 weeks ago master
  2. 0efb62f [maven-release-plugin] prepare for next development iteration by Robert Munteanu · 3 months ago
  3. c6cb2a7 [maven-release-plugin] prepare release org.apache.sling.feature.extension.content-1.0.18 by Robert Munteanu · 3 months ago org.apache.sling.feature.extension.content-1.0.18
  4. f55bec7 SLING-12774 - Content feature launcher extension should reinstall SNAPSHOT content packages (#25) by Robert Munteanu · 3 months ago
  5. 520387e [maven-release-plugin] prepare for next development iteration by Julian Sedding · 4 months ago

Apache Sling

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

Apache Sling Featuremodel - Content Deployment Extension

This module is part of the Apache Sling project.

This module extends the Sling Featuremodel Launcher with content package capabilities. The format of the extension is described in Extension Content-Packages.

To influence the package installation order the following format must be used

"content-packages:ARTIFACTS|required":[
    "id":"org.apache.sling.myapp:my-content-package:zip:1.0.0"
    "start-order": 1
]

The default start order is the maximum integer value (i.e. the package is processed after all packages with an explicit start-order).

All content-packages from the model are registered (externally) in a FSPackageRegistry and scheduled for installation with execution plans (given via OSGi configuration) which automatically get executed during repository start by ExecutionPlanRepoInitializer

Strict package mode installation can be enabled for all packages by setting the org.apache.sling.feature.extension.content.useStrictMode system property to true.

Reinstallation of SNAPSHOT content packages

By default SNAPSHOT content packages are not reprocessed. If reinstallation is desired the org.apache.sling.feature.extension.content.reinstallSnapshots system property must be set to true. This requires at runtime a version 1.0.6 or newer of the org.apache.sling.jcr.packageinit bundle.