Inconsistent package versions and incomplete deployments
This article explains how to resolve issues with inconsistent package versions and incomplete application deployments when deploying the same codebase to multiple environments in Adobe Experience Manager (AEM) as a Cloud Service.
Description description
Environment
Adobe Experience Manager as a Cloud Service
Issue/Symptoms
- Some packages are installed as release versions (for example, 1.0.0), while others are installed as SNAPSHOT versions (for example, 1.0.0-SNAPSHOT).
- Some applications aren’t fully installed, resulting in missing pages or incomplete functionality.
- The issue can occur even when all
pom.xmlfiles specify the release version.
Cause
This issue is caused by leftover SNAPSHOT artifacts from previous builds, open-ended Maven version ranges, and the reuse of cached modules during smart builds. In Dev-type environments, AEM may skip re-installing packages if the same version is already present, even if the package content has changed.
Resolution resolution
To fix inconsistent package versions and incomplete deployments, follow these steps:
-
Review and update Maven dependency versions:
- Edit all relevant
pom.xmlfiles to ensure that shared libraries are pinned to a fixed version (e.g., 1.0.0) instead of using open-ended version ranges (e.g.,[1.0,)). - Remove any enforcer exceptions that allow SNAPSHOT versions to be included.
- Edit all relevant
-
Delete any existing SNAPSHOT artifacts from your artifact repository to prevent them from being resolved during future builds.
-
In Cloud Manager, disable the smart build feature for all affected pipelines to ensure a full, clean build and deployment. This prevents reuse of cached modules and ensures all packages are rebuilt and deployed with the correct versions.
-
In each environment, use AEM Package Manager (Tools
>Deployment>Packages) to verify that all relevant packages (such as ui.apps, ui.content, all, and their converted versions) are installed with the expected version and recent timestamps. -
To force reinstallation, either use unique package versions for each deployment (for example, append a build number or commit ID) or manually delete previously installed packages from Package Manager before redeploying.
-
Ensure that all required modules (such as ui.frontend and structure) are included and properly configured in the build process. Restore any commented-out modules or empty filters that may cause incomplete application installation.
-
Rerun the Cloud Manager pipeline after making these changes. Confirm that all packages are installed as expected and the application is fully functional in each environment.