Cloud Manager build and deployment errors · updated
AEM analyser warning: Found bundle resources (Sling-Bundle-Resources)
The bundle-resources analyser warns when an OSGi bundle provides repository content through the Sling-Bundle-Resources header, which Adobe calls problematic in the clustered AEM as a Cloud Service environment. Adobe's fix is to convert those resources into repoinit statements or proper content packages.
The warning
Adobe's example: '[WARNING] org.acme:mybundle:0.0.1-SNAPSHOT: Found bundle resources : [/libs/sling/explorer!/resources/explorer]'.
Why it's a problem
Cloud Service runs several instances and separates immutable code from mutable content. Content injected by bundles at runtime doesn't fit that model; it should be in the immutable package if it is code (for example under /apps) or created by repoinit if it is a folder structure, service user or ACL.
| What the bundle resource provides | Move it to |
|---|---|
| Scripts or components | ui.apps (immutable) |
| Folder structure | repoinit create path |
| Default content | ui.content (mutable) |
This pattern shows up in older third-party bundles and in custom code written years ago for on-premise AEM. Check whether a newer version of the library has dropped the header before rewriting anything.
How to fix it
- Find the bundle and path named in the warning.
- Decide whether the resource is code or content.
- Move code into ui.apps or content into ui.content or repoinit.
- Remove the Sling-Bundle-Resources header and rebuild.
Related pages on this site
Questions
Is bundle-resources an error or a warning?
Adobe shows it as a warning, but explains why it's problematic on Cloud Service; fix it.
What replaces bundle resources?
Repoinit statements for structure and permissions, and content packages for code and content.
Does it run in Cloud Manager?
Yes, Adobe lists it as running locally and in Cloud Manager.
Sources
- Adobe: AEM as a Cloud Service SDK Build Analyzer Maven Plugin (checked 10 Nov 2026)
- Adobe: Deploying to 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.