Cloud Manager build and deployment errors · updated

AEM analyser error: bundle is importing package(s) but no bundle is exporting these

The api-regions-exportsimports analyser fails the build when an OSGi bundle's Import-Package needs a package that no included bundle exports at that start level. Adobe's advice is to check that the bundle providing the package is part of the deployment and, if it is, that its manifest exports the package under the name and version you expect.

What the error looks like

Adobe's example: '[ERROR] org.acme:mybundle:0.0.1-SNAPSHOT: Bundle org.acme:mybundle:0.0.1-SNAPSHOT is importing package(s) org.acme.foo in start level 20 but no bundle is exporting these for that start level.' The analyser runs both in the local SDK build (with the plugin) and in Cloud Manager.

Common causes

CauseFix
A third-party library isn't embedded or deployedEmbed it in your all package, or embed it in the bundle
The package moved or was removed in Cloud ServiceUse the replacement API (see deprecated APIs)
Wrong version range in Import-PackageFix the range or the exporting bundle's package-info version
Optional import treated as mandatoryMark it optional in the bnd configuration if genuinely optional
Package is internal AEM API, not publicUse the public API; internal packages aren't exported to customer code

Run the analyser locally with the AEM project archetype's analyse module so you see the error before Cloud Manager does. Adobe recommends using the latest plugin version, and the plugin analyses against the latest available SDK, not the one in your project.

How to fix it

  1. Find the package named in the error and the bundle that imports it.
  2. Check whether any deployed bundle should export it (bnd, MANIFEST.MF).
  3. If it's a third-party library, embed or deploy it in the all package.
  4. If it's an AEM internal or removed API, switch to the public replacement.
  5. Re-run mvn clean install with the analyser before pushing.

Related pages on this site

Questions

Does this analyser run in Cloud Manager?

Yes. Adobe's table marks api-regions-exportsimports as running both in the local SDK build and in Cloud Manager.

Why does it pass on my local AEM?

Your local instance may have extra bundles installed by hand, or an older SDK. The analyser checks only what your project deploys, against the latest SDK.

What does 'start level 20' mean here?

The import must be satisfied by a bundle available at that start level; the fix is the same: make sure something exports the package.

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.