This is a single-page application (SPA) project generated from the AEM SPA Project Archetype.
core
: OSGi bundle containing Java classes (e.g. Sling models, servlets, business logic)ui.apps
: AEM components with their scripts and dialog definitionsui.content
:ui.content/src/main/content/jcr_root/conf
: AEM content package with editable templates stored at/conf
ui.content/src/main/content/jcr_root/content
: AEM content package containing sample content (for development purposes)
react-app
: SPA source codeall
: All-in-one package
- Java 8 or higher
- Maven 3.5 or higher
- AEM 6.4.7+ or 6.5.3+
To build all modules, run the following command in the project root directory:
mvn clean install
For example, to build your SPA and deploy it on a local AEM author instance, you can run:
mvn clean install -PautoInstallPackage
After deploying, you can view the sample content page in your browser: http://localhost:4502/content/editor.html/content/media_publication_spa/en.html
autoInstallBundle
: Installs thecore
bundle with themaven-sling-plugin
to the Felix consoleautoInstallPackage
: Installs theui.content
andui.apps
content packages with thecontent-package-maven-plugin
to the package manager of the default author instance.autoInstallPackagePublish
: Installsui.content
andui.apps
on the default publish instance.
In the all-in-one package (all
directory), there are additional profiles for packaging all dependencies into a single content package and installing everything on an existing AEM instance:
autoInstallSinglePackage
: Installs the all-in-one package to an existing AEM author instanceautoInstallSinglePackagePublish
: Installs the all-in-one package to an existing AEM publish instance