This OSGi bundle provides the JCR packages as well as a helper service interface for repository providers in Apache Sling.
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.jcr.api</artifactId>
<version>2.4.2</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Obtains a JCR session from a SlingRepository instance.
Replace loginAdministrative with repository.login(new SimpleCredentials("admin", "admin".toCharArray())).No dependency data recorded yet.