Skip to content

wcm-io-training/training-caconfig-exercise-aem

Repository files navigation

Context-Aware Configuration Training: AEM

Build

This training projects targets the following training modules:

Requirements

  • AEMaaCS SDK author instance running on port 4502

Deploy sample project

You can use this script for a full deployment (application, sample content, configuration) into a local AEM instance running at http://localhost:4502:

build-deploy.sh

This script also cleans and builds all maven projects and generates eclipse project files.

For the exercise you will work in the bundles/base and bundles/editorial bundles. Example to redeploy only one of these bundles:

cd bundles/editorial
mvn cq:install

Configure File System Resource Provider

You can mount the files system of your eclipse project to directly see changes in Sightly HTML, JSON oder other files in your running AEM application without having to redeploy the OSGi bundles. Deploying the OSGi bundle is only required if you change Java code.

To setup the files system synchronization go to the folder of the bundle project below bundles/ and execute on it:

mvn sling:fsmount

Exercises

See DATM-56 Context-Aware Configuration exercises

Maven Settings

To build the project you have to configure additional Maven Repositories in your settings.xml.

Alternatively you can build the project by specifying:

mvn --settings .maven-settings.xml clean install