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.
CheckAction
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.* packageMove 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

  1. Identify which bundle and package the warning names.
  2. Set AEM/Sling API dependencies to provided scope.
  3. Restrict Export-Package to your own API packages.
  4. 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

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.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples. For AEM 6.5 code, the free readiness scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.