Added README and script
5 files changed
tree: f571d6178c09ceb0768c34c0fd6ac14223b946b5
  1. src/
  2. .gitignore
  3. .sling-module.json
  4. CODE_OF_CONDUCT.md
  5. CONTRIBUTING.md
  6. create_seed.sh
  7. explore_repo.sh
  8. Jenkinsfile
  9. LICENSE
  10. pom.xml
  11. prepare_composite.sh
  12. README-composite.md
  13. README.md
  14. run_composite.sh
  15. set-sling-snapshots.sh
README.md

Build Status Test Status Maven Central JavaDocs License

Apache Sling Starter

This module is part of the Apache Sling project.

The starter project produces both a Standalone Java Application which contains everything needed to run the Launchpad in a single JAR file and a Web Application.

It is not meant to be a production-ready setup, more as a way to facilitate experimenting and learning Sling.

How to run the Sling Starter module in Standalone mode

NOTE: “mvn clean” deletes the “sling” work directory in the project base directory. It is advisable to use a work directory outside of the project directory.

  1. Build the Sling Starter using

    mvn clean install

in the current directory.

  1. Start the generated jar with

    java -jar target/org.apache.sling.starter-10-SNAPSHOT.jar

Use the correct version number instead of 10-SNAPSHOT, if needed.

  1. Browse Sling in:

     http://localhost:8080
    

How to run the Sling Starter module in webapp mode

  1. Build the Sling Starter using

    mvn clean install

in the current directory.

  1. Deploy target/org.apache.sling.starter-10-SNAPSHOT.war to your favorite application server or servlet container. Servlet 3.1 is a minimum requirement for the web app.