- OpenJDK for Java 1.8
- Git
- Maven (I'm using 3.3.9)
- The Eclipse IDE for Java EE Developers (I'm using Neon)
- The Sling Launchpad
Note: This post will walk you through the steps required to install the OpenJDK for Java 1.8. This post will walk you through the steps required to install Git, Maven and the Eclipse IDE. And, this post introduces the Apache Sling Launchpad.
This project requires Apache Sling.
- Download the Apache Sling Launchpad.
- Start the Launchpad by running the following command:
java -Xmx1024M -jar org.apache.sling.launchpad-8.jar
Note: The Sling Launchpad will take a few minutes to unpack, install itself, and start up.
Build and deploy to a running instance of the Sling Launchpad:
cd ui.content
mvn clean install -PautoInstallBundle
Navigate to http://localhost:8080/author/index.html.
You should see something like:
Choose "New Post" and you should see something like:
Three Maven archetypes where used to kickstart this project (this is purely informational, you do not need to run the following commands).
- Create the parent pom:
mvn archetype:generate \
-DarchetypeGroupId=org.codehaus.mojo.archetypes \
-DarchetypeArtifactId=pom-root \
-DarchetypeVersion=RELEASE \
-DgroupId=org.vardyger \
-DartifactId=vardyger \
-Dversion=1.0.0-SNAPSHOT \
-DinteractiveMode=false
- Create the "core" bundle project:
mvn archetype:generate \
-DarchetypeGroupId=org.apache.sling \
-DarchetypeArtifactId=sling-bundle-archetype \
-DgroupId=org.vardyger \
-DartifactId=core \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=org.vardyger.core \
-DappsFolderName=vardyger \
-DartifactName="core" \
-DpackageGroup="core" \
-DinteractiveMode=false
- Create the "ui.content" content project:
mvn archetype:generate \
-DarchetypeGroupId=org.apache.sling \
-DarchetypeArtifactId=sling-initial-content-archetype \
-DgroupId=org.vardyger \
-DartifactId=ui.content \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=org.vardyger.ui.content \
-DappsFolderName=vardyger \
-DartifactName="ui.content" \
-DpackageGroup="ui.content" \
-DinteractiveMode=false
- Create the "author" project:
ionic start author sidemenu