Cloud Manager build and deployment errors · updated

AEM analyser warning: Usage of deprecated package found (region-deprecated-api)

The region-deprecated-api analyser warns when your code uses an API that AEM as a Cloud Service has deprecated, such as org.apache.sling.settings for run-mode checks. Adobe's tutorial on deprecated APIs advises treating these warnings as future pipeline failures and removing the usage now.

The warning

Adobe's example: '[WARNING] com.mysite:mysite.core:… Usage of deprecated package found : org.apache.sling.settings : Avoid these features at runtime: run modes, file system access'. It appears during mvn clean install when the analyser runs.

Common deprecated usages in migrated code

Deprecated usageTypical replacement
Run-mode checks via SlingSettingsServiceOSGi configuration per run mode, or environment variables
File-system access at runtimeStore data in the repository or an external service
Removed or deprecated AEM APIsSee our deprecated API pages for each replacement

Adobe's tutorial uses the aemanalyser-maven-plugin in the project build to surface these warnings early, and recommends keeping the plugin current. Cloud Manager's own analysis runs in the pipeline, so local runs are for early feedback.

Deprecated APIs get removal dates; a warning today can be a blocked deployment later. Our deprecated API reference lists replacements per API.

How to fix it

  1. Run mvn clean install and collect every region-deprecated-api warning.
  2. Group them by API and look up each replacement.
  3. Replace run-mode logic with configuration or environment variables.
  4. Re-run the build until the warnings are gone.

Related pages on this site

Questions

Will this warning fail my pipeline?

Not today if it's a warning, but Adobe recommends treating it as a future failure.

How do I check run modes on Cloud Service without SlingSettingsService?

Use run-mode-specific OSGi configuration or environment variables instead of code checks.

Which plugin shows these warnings locally?

The AEM analyser Maven plugin in your project build; keep it on the latest version.

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.