Cloud Manager build and deployment errors · updated
AEM analyser warning: package overlap found between region global and your bundle
The api-regions-crossfeature-dups analyser warns when one of your bundles exports a package that AEM as a Cloud Service already exports as public API. Adobe's fix is to stop exporting that package from your bundle, usually because a library was embedded and re-exported by mistake.
The warning
Adobe's example: '[WARNING] … Package overlap found between region global and bundle org.acme:mybundle … Both export package: com.day.util'. Overriding a platform API package can break AEM itself or other code that expects Adobe's version.
How it usually happens
- A dependency containing AEM or Sling API classes was embedded in a bundle with a wildcard Export-Package.
- An old uber-jar or API jar was packaged into the deployment.
- Copied classes from an AEM package kept the original package name.
| Check | Action |
|---|---|
| Is the dependency scope 'provided'? | AEM API dependencies should be provided, not compile/embedded |
| Does bnd export everything? | Export only your own API packages |
| Copied class in a com.day.* or org.apache.sling.* package | Move it to your own package name |
Treat warnings like this as future failures. Adobe's deprecated-API tutorial gives the same advice for analyser warnings in general: fix them before they become pipeline errors.
How to fix it
- Identify which bundle and package the warning names.
- Set AEM/Sling API dependencies to provided scope.
- Restrict Export-Package to your own API packages.
- Rebuild and confirm the warning is gone.
Related pages on this site
Questions
Is this only a warning?
Adobe shows it as a [WARNING], but overriding platform API is risky; fix it.
Why would my bundle export com.day.util?
Usually because a jar containing those classes was embedded and re-exported.
What is 'region global'?
The set of packages AEM as a Cloud Service exposes as public API to customer code.
Sources
- Adobe: AEM as a Cloud Service SDK Build Analyzer Maven Plugin (checked 10 Nov 2026)
- Adobe tutorial: Find and remove deprecated APIs in AEM as a Cloud Service (checked 10 Nov 2026)
Facts about Adobe's platform are from the linked Adobe pages, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.