Request for Feature Enhancement (RFE) Summary: |
Introduce the Apache mvnd (Maven Daemon) wrapper in Adobe Cloud Manager so that the build step can reuse a long-lived JVM, parallelise module compilation, and dramatically cut cold-start overhead. This change targets only the build phase; the deploy phase likely remains untouched. |
Use-case: |
Large, multi-module AEM as a Cloud Service projects (often 10 + modules) can spend several minutes just starting Maven and resolving plugins for every pipeline run. In busy CI/CD setups (feature branch builds, frequent merges, scheduled quality gates) these wasted minutes quickly accumulate, slowing feedback loops and consuming CI minutes. |
Current/Experienced Behavior: |
-
Cloud Manager invokes the stock mvn CLI in a fresh container for each build.
-
Each invocation spins up a new JVM, scans plugins, and builds modules sequentially.
-
Typical build duration for a representative 10-module project: 9–11 minutes, of which ~1-3 minutes are Maven start-up and plugin scanning.
-
Developers compensate by using mvnd locally, but must still wait for slower pipeline feedback.
|
Improved/Expected Behavior: |
-
Cloud Manager containers start an mvnd daemon once, then execute build goals through the daemon for the lifetime of the build step.
-
Parallel module compilation (default --threads=auto ) and reused class-loaders remove the repeated start-up cost (potentially the resources of the build-pod(s) need to be increased to provide more CPUs to work with in parallel).
-
Anticipated build-step time-savings: 25-40 % on typical AEM multi-module projects (confirmed in local benchmarks and community posts).
-
No impact on deployment logic; output artefacts (all-, ui.apps, ui.content) remain identical.
|
Environment Details (AEM version/service pack, any other specifics if applicable): |
---- |
Customer-name/Organization name: |
---- |
Screenshot (if applicable): |
---- |
Code package (if applicable): |
----
|
Maven-Deamon (mvnd): https://github.com/apache/maven-mvnd
Article: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/speed-up-local-devel...