- Setup latest AEMaaCS SDK Author on port 4502, Publish on port 4503
- Deploy application locally with
build-deploy-author-and-publish.sh
- Add local hosts:
127.0.0.1 tenant1.aemdef-it-sample.localhost 127.0.0.1 tenant2.aemdef-it-sample.localhost 127.0.0.1 tenant3-no-mapping.aemdef-it-sample.localhost
- Start local dispatcher in docker with
config-definition/dispatcher-cloud-run-local*
script- Prequisite: Install aem-sdk-dispatcher-tools and point environment variable
AEM_SDK_DISPATCHER_TOOLS
to it
- Prequisite: Install aem-sdk-dispatcher-tools and point environment variable
- Open website per tenant:
- Tenant 1: http://tenant1.aemdef-it-sample.localhost:5503/
- Tenant 2: http://tenant2.aemdef-it-sample.localhost:5503/
- Tenant 3 (no mapping): http://tenant3-no-mapping.aemdef-it-sample.localhost:5503/
- Setup AEM 6.5 Author on port 45025, Publish on port 45035
- Deploy application locally with
build-deploy-author-and-publish_aem65.sh
- Add local hosts:
127.0.0.1 tenant1.aemdef-it-sample-65.localhost 127.0.0.1 tenant2.aemdef-it-sample-65.localhost 127.0.0.1 tenant3-no-mapping.aemdef-it-sample-65.localhost
- Start local dispatcher in docker with
config-definition/dispatcher-aem65-run-local.sh
script - Open website per tenant:
- Tenant 1: http://tenant1.aemdef-it-sample-65.localhost:55035/
- Tenant 2: http://tenant2.aemdef-it-sample-65.localhost:55035/
- Tenant 3 (no mapping): http://tenant3-no-mapping.aemdef-it-sample-65.localhost:55035/
This is an AEM project set up with the wcm.io Maven Archetype for AEM.
To build the application run
mvn clean install
To build and deploy the application to your local AEM instance use these scripts:
build-deploy.sh
- Build and deploy to author instancebuild-deploy-publish.sh
- Build and deploy to publish instancebuild-deploy-author-and-publish.sh
- Build, and then deploy to author and publish instance (in parallel)
Alternatively use these script to deploy to local AEM 6.5 instance:
build-deploy-65.sh
- Build and deploy to author instancebuild-deploy-publish-65.sh
- Build and deploy to publish instancebuild-deploy-author-and-publish-65.sh
- Build, and then deploy to author and publish instance (in parallel)
- Java 11
- Apache Maven 3.6.0 or higher
- AEMaaCS SDK author/publish instance running on port 4502/4503
- Or: AEM 6.5 author/publish instance running on port 45025/45035
- To obtain the latest service packs via Maven you have to upload them manually to your Maven Artifact Manager following these conventions for naming them.
Modules of this project:
- parent: Parent POM with dependency management for the whole project. All 3rdparty artifact versions used in the project are defined here.
- bundles/core: OSGi bundle containing:
- Java classes (e.g. Sling Models, Servlets, business logic) with unit tests
- AEM components with their scripts and dialog definitions (included as
Sling-Initial-Content
) - i18n
- HTML client libraries with JavaScript and CSS
- content-packages/complete: AEM content package containing all OSGi bundles of the application and their dependencies
- content-packages/conf-content: AEM content package with editable templates stored at
/conf
- content-packages/sample-content: AEM content package containing sample content (for development and test purposes)
- config-definition: Defines the CONGA roles and templates for this application. Also contains a
development
CONGA environment for deploying to local development instances.