commit | 350a4f2bedcb31fdf3e62ea0ba05d916a37ad79f | [log] [tgz] |
---|---|---|
author | Dan Klco <dklco@apache.org> | Thu Feb 25 12:13:27 2021 -0500 |
committer | Dan Klco <dklco@apache.org> | Thu Feb 25 12:13:27 2021 -0500 |
tree | f54b56d3fb00c907a781fefae306dc71ae00b513 | |
parent | c383c866e53b690b34d87d758e2c320ef1321d11 [diff] | |
parent | 0638275e95a1ff97a1d8aa3db29d966849381d5b [diff] |
Merge branch 'master' of github.com:apache/sling-org-apache-sling-starter
This module is part of the Apache Sling project.
The starter project produces feature artifacts that can be launched using the Feature Launcher.
It is not meant to be a production-ready setup, more as a way to facilitate experimenting and learning Sling.
See Releasing a new version of the Sling starter for how to create a release of this module.
NOTE: “mvn clean” deletes the “launcher” work directory in the project base directory. It is advisable to use a work directory outside of the project directory.
Build the Sling Starter using
mvn clean install
in the current directory.
Start Sling backed by an Oak SegmentStore with
java -jar target/dependency/org.apache.sling.feature.launcher.jar -f target/slingfeature-tmp/feature-oak_tar.json
Browse Sling in:
http://localhost:8080
For MongoDB support replace the launch command with
java -jar target/dependency/org.apache.sling.feature.launcher.jar -f target/slingfeature-tmp/feature-oak_mongo.json
This expects a MongoDB server to be running, search for mongodb://
in the feature files for the expected URL (currently mongodb://localhost:27017
).
If you wish the extend the Sling Starter but would like to keep various application-level features out, you can start with the nosample_base
aggregate, which contains:
For instance, launching an empty Sling Starter with segment persistence can be achieved by running
java -jar target/dependency/org.apache.sling.feature.launcher.jar -f target/slingfeature-tmp/feature-nosample_base.json,target/slingfeature-tmp/feature-oak_persistence_sns.json
Your own feature files can be added to the feature list.