Many parts of Oak are still under construction, so it may be a bit difficult to find your way around the codebase. The README files, this documentation, and the Oak mailing list archives are good places to start learning about Oak.
There is also the Jackrabbit 3 wiki page, which is mostly outdated though and should only be consulted for historical research.
To get started developing Oak, checkout the sources from svn, or fork them on GitHub. Then build the latest sources with Maven 3 and Java 7 (or higher) like this:
mvn clean install
To enable all integration tests, including the JCR TCK, use:
mvn clean install -PintegrationTesting
Before committing changes or submitting a patch, please make sure that the above integration testing build passes without errors. If you like, you can enable integration tests by default by setting the OAK_INTEGRATION_TESTING environment variable.
Parts of the Oak build expects a MongoDB instance to be available for testing. By default a MongoDB instance running on localhost is expected, and the relevant tests are simply skipped if such an instance is not found. You can also configure the build to use custom MongoDB settings with the following properties (shown with their default values):
-Dmongo.host=127.0.0.1 -Dmongo.port=27017 -Dmongo.db=MongoMKDB -Dmongo.db2=MongoMKDB2
Note that the configured test databases will be dropped by the test cases.
The build consists of the following components:
oak-api - Oak repository API
oak-jcr - JCR binding for the Oak repository
oak-solr-core - Apache Solr indexing and search
oak-auth-external - External authentication support
oak-blob - Oak Blob Store API
oak-store-spi - Oak NodeStore and Commit SPI
oak-upgrade - tooling for upgrading Jackrabbit repositories to Oak and sidegrading Oak to Oak
oak-run - runnable jar packaging
oak-benchmarks - benchmark tests
oak-http - HTTP binding for Oak
oak-exercise - Oak training material
The following components have been moved to the Jackrabbit Attic: