#set(
This is a single-page application (SPA) project generated from the AEM SPA Project Archetype.
${hash}${hash} Modules
-
core
: OSGi bundle containing Java classes (e.g. Sling models, servlets, business logic) -
ui.apps
: AEM components with their scripts and dialog definitions -
ui.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)
-
-
${optionFrontend}-app
: SPA source code -
all
: All-in-one package
${hash}${hash} Usage
${hash}${hash}${hash} Requirements
- Java 8 or higher
- Maven 3.5 or higher
- AEM 6.4.7+ or 6.5.3+
${hash}${hash}${hash} Building modules
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/${projectName}/en.html
${hash}${hash}${hash} Maven profiles
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
${hash}${hash} Documentation