Apache Sling JCR Jackrabbit Base
July 16, 2026 ยท View on GitHub
Apache Sling JCR Jackrabbit Base
This module is part of the Apache Sling project.
The JCR base bundle provides Jackrabbit utility classes for integrating Jackrabbit security and configuration extension points with an OSGi runtime.
Key Components
OsgiBeanFactory(org.apache.sling.jcr.jackrabbit.base.config) tracks OSGi services marked as Jackrabbit extensions and exposes aBeanFactorywhen all required dependencies are available.DelegatingLoginModuledelegates JAAS login handling to an OSGi-based JAAS configuration when available, with fallback to Jackrabbit's local module setup.PrincipalProviderTrackerandDelegatingPrincipalProviderRegistrybridge OSGi-registeredPrincipalProviderservices into Jackrabbit's principal provider registry model.MultiplexingAuthorizableActiontracks OSGiAuthorizableActionservices and dispatches Jackrabbit authorizable lifecycle callbacks to them.
Build
mvn clean install
Common Commands
# Compile only
mvn compile
# Run tests
mvn test
# Build without tests
mvn install -DskipTests
# Check formatting
mvn spotless:check
# Apply formatting
mvn spotless:apply
# Full verification (includes integration checks from parent build)
mvn verify
# License header compliance
mvn apache-rat:check
Requirements and Dependencies
- Java 8 (
sling.java.version=8) - Maven build parent:
org.apache.sling:sling-bundle-parent:66 - Apache Jackrabbit Core
2.5.2(provided) - JCR API (
javax.jcr:jcr, provided) - OSGi APIs (
org.osgi.framework,org.osgi.util.tracker,org.osgi.annotation.versioning, provided) - SLF4J API (provided)
- JUnit 4 and
slf4j-simplefor tests - Animal Sniffer Maven Plugin (
org.codehaus.mojo:animal-sniffer-maven-plugin:1.24) enforces Java 8 API compatibility
Source Layout
src/main/java/org/apache/sling/jcr/jackrabbit/base/
config/
OsgiBeanFactory.java
security/
DelegatingLoginModule.java
DelegatingPrincipalProviderRegistry.java
MultiplexingAuthorizableAction.java
PrincipalProviderTracker.java
package-info.java
There is currently no src/test/java/ tree in this module.
