Cloud Manager build and deployment errors · updated

AEM analyser error: bundle is exporting package without a version

The bundle-unversioned-packages analyser flags OSGi bundles that export a package with no version or import one with no version range. Adobe's fix is to add a package-info.java to each exported package with a version annotation, so the Export-Package header carries a version.

The error

Adobe's example: '[ERROR] org.acme:mybundle:0.0.1-SNAPSHOT: Bundle org.acme:mybundle:0.0.1-SNAPSHOT is exporting package org.acme.foo without a version.' It runs locally and in Cloud Manager.

Why versions matter

Semantic package versions let OSGi resolve the right provider when several bundles are deployed, and let the analyser check import ranges. Without them, a later change can break consumers silently.

SituationWhat to do
Your own exported API packageAdd package-info.java with @Version("1.0.0")
Package exported by accidentStop exporting it (keep it private in bnd)
Import without a rangeLet bnd compute ranges from versioned exports

If your bundles export implementation packages only because of a wildcard Export-Package, tighten the bnd configuration so only API packages are exported. Fewer exports mean fewer version decisions and fewer analyser findings.

package-info.java

@Version("1.0.0")
package org.acme.foo;

import org.osgi.annotation.versioning.Version;

How to fix it

  1. List the packages your bundle exports (check the generated MANIFEST.MF).
  2. Add package-info.java with @Version to each API package.
  3. Remove accidental exports of implementation packages.
  4. Rebuild and re-run the analyser.

Related pages on this site

Questions

Which version should I start with?

1.0.0 is common for a first API version; increase it following semantic versioning when the API changes.

Does this fail the Cloud Manager pipeline?

Adobe shows it as an [ERROR] that runs in Cloud Manager; treat it as a build blocker.

Do I need package-info for internal packages?

Only for packages you export; keep internal packages private.

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.