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:
The Analyser can also be run as part of a maven build via the
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
bundle-resources: Gives a warning if a bundle contains resources specified with
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