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
| Cause | Fix |
|---|---|
| A third-party library isn't embedded or deployed | Embed it in your all package, or embed it in the bundle |
| The package moved or was removed in Cloud Service | Use the replacement API (see deprecated APIs) |
| Wrong version range in Import-Package | Fix the range or the exporting bundle's package-info version |
| Optional import treated as mandatory | Mark it optional in the bnd configuration if genuinely optional |
| Package is internal AEM API, not public | Use 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
- Find the package named in the error and the bundle that imports it.
- Check whether any deployed bundle should export it (bnd, MANIFEST.MF).
- If it's a third-party library, embed or deploy it in the all package.
- If it's an AEM internal or removed API, switch to the public replacement.
- 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
- Adobe: AEM as a Cloud Service SDK Build Analyzer Maven Plugin (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.