Apache Sling NoSQL MongoDB Resource Provider

Clone this repo:
  1. 4a6b92d SLING-12094 - Use GitHub for the Maven scm.url value by Robert Munteanu · 7 months ago master
  2. 13e3f8a SLING-11709 - Set up Jira autolinks to all Sling Github projects by Robert Munteanu · 1 year, 1 month ago
  3. 521703b SLING-11051 - Fixing JavaDoc badge by Dan Klco · 2 years, 4 months ago
  4. 95c9f86 SLING-10676 - remove SECURITY.md which is not needed by Bertrand Delacretaz · 2 years, 9 months ago
  5. dff5cf6 SLING-10676 - add or update SECURITY.md by Bertrand Delacretaz · 2 years, 10 months ago

Apache Sling

Build Status Coverage Sonarcloud Status JavaDoc Maven Central Contrib nosql License

Apache Sling NoSQL MongoDB Resource Provider

This module is part of the Apache Sling project.

Sling ResourceProvider implementation that uses MongoDB NoSQL database as persistence.

Based on the “Apache Sling NoSQL Generic Resource Provider”.

All resource data is stored in one MongoDB database and one collection, using the path of the resource as “_id” property.

Configuration on deployment

  • Create a factory configuration for “Apache Sling NoSQL MongoDB Resource Provider Factory” to define the root of the resource tree that should be stored in MongoDB, and MongoDB connection string, database name and collection name.

Run integration tests

To run the integration tests you have to set up a real MongoDB server and run the tests with this command line (inserting the correct parameters):

mvn -Pmongodb-integration-test -DconnectionString=localhost:27017 -Ddatabase=sling -Dcollection=resources integration-test