Apache Sling Feature Model Analyser

Clone this repo:
  1. 41102b3 [maven-release-plugin] prepare for next development iteration by David Bosschaert · 3 months ago master
  2. 7500e4d [maven-release-plugin] prepare release org.apache.sling.feature.analyser-1.2.6 by David Bosschaert · 3 months ago org.apache.sling.feature.analyser-1.2.6
  3. 2df59ea Updated readme.md by David Bosschaert · 3 months ago
  4. 4e92aec 9092 : Remove unused export-packages analyser by Carsten Ziegeler · 3 months ago
  5. 89fdb12 [maven-release-plugin] prepare for next development iteration by David Bosschaert · 4 months ago

Build Status Maven Central JavaDocs License feature

Feature Model Analyser

The Analyser can analyse features for completeness and correctness. The analyser is pluggable and can also perform other checks.

The analyser can be run from the commandline by running the following main class:

java org.apache.sling.feature.analyser.main.Main

Feature Model Analyser as a Maven Plugin

The Analyser can also be run as part of a maven build via the slingfeature-maven-plugin: https://github.com/apache/sling-slingfeature-maven-plugin

The following analysers are defined:

  • bundle-packages: Checks bundle import/export package statements for consistency and completeness. If API Regions are used this analyser includes this information as part of the check, to ensure that bundles don't import packages of which they have no visibility because of API Regions restrictions.

  • bundle-content: Gives a warning if a bundle container initial content specified with Sling-Initial-Content.

  • bundle-resources: Gives a warning if a bundle contains resources specified with Sling-Bundle-Resources.

  • requirements-capabilities: Checks bundle requirements/capabilities for consistency and completeness.

  • apis-jar: validates that the sourceId property of a bundle, if defined, is a comma-separated value list of artifact ids.

Additional analysers in relation to Feature Model API Regions can be found here: https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions

For further documentation see: https://github.com/apache/sling-org-apache-sling-feature/blob/master/readme.md