Introduction
Developing and testing in Adobe Experience Manager (AEM) can be a time-consuming process, especially in large, multi-module projects with multiple teams working in parallel. If every small change requires a full Maven build and deployment, then the development cycle will dramatically slow down as the project grows.
In this article, we’ll explore a few tools and commands that can supercharge your local development workflow. By reducing build times and enabling instant file synchronization, these tools help AEM developers focus on writing code instead of waiting for deployments. Whether you're building components, refining styles, or optimizing backend logic, these techniques can save you minutes, if not hours, every day.
Key Points
For standard CI/CD environments like GitHub Actions, a standard, full Maven build is still recommended. Here is why:
- Standard Maven is pre-installed in most CI/CD runners.
- Parallel execution that Demon provides may not work well in restricted resource environments.
- CI/CD environments usually start fresh VMs/containers for each run, so the Daemon does not persist between builds.
- Deamon modifies the way logs are presented, which might make debugging harder.
However, for local development environments, Maven Deamon and the AEM Sync utility are great. As best practice for development and testing use:
- A modern IDE like InteliJ IDEA for debugging/running unit tests.
- AEM Sync to install and test changes that include XML, HTML, CSS, or JS files.
- Maven Demon to install and test changes that include Java and OSGi files.
- Full Maven build when a feature is finalized, to ensure the new code and tests integrate well. Ideally, before we open a pull request.
With this setup, developers can increase productivity. The downside is that they only get to drink coffee once a feature is done.
Full Article
Read the full article on https://meticulous.digital/blog/f/speed-up-local-development-in-multi-module-aem-projects to find out more.
Q&A
Please use this thread to ask questions relating to this article