Fix Deprecated APIs Before Cloud Manager Pipelines Fail (Deadline: January 2027)

Your pipeline was green last month. You change one line of CSS, push it, and the Code Quality step stops with a message about deprecated APIs in a bundle you wrote three years ago. This is already starting to happen on AEM as a Cloud Service projects, and the reason is a deadline that Adobe has published, not a bug in your build.

Adobe will remove several deprecated APIs from AEM as a Cloud Service on March 31, 2027. Before that date, Cloud Manager first pauses and then fails the pipeline when it finds your code using them. In this tutorial I will show you the exact timeline, how to find the deprecated usage on your laptop with the AEM Analyser Maven plugin, and how to fix the most common cases step by step.

Cloud Manager pipeline blocked by a deprecated API warning before the January 2027 deadline

Table of contents


Why this matters

AEM as a Cloud Service is updated continuously, so Adobe cannot keep every old library in the product forever. When a library or API is marked deprecated, it gets a target removal date. Adobe’s own page says customers must remove all usage before that date. The new part is that Cloud Manager now enforces it before the removal date, so a pipeline stops you earlier than production would.

What makes this tricky is that most of the code that fails is not new code. It is a commons-lang import in an old utility class, a com.day.cq.xss call in a servlet, or a third-party library that quietly depends on Guava. Nobody has touched it for years, so nobody remembers it.

Who should read this

This post is for AEM developers and tech leads who own a Cloud Manager pipeline, and for deployment managers who will be asked to approve an override. If your project is still on AEM 6.5, this is useful as a checklist for your migration, because the same APIs will block you later.

Prerequisites

  • An AEM as a Cloud Service project built from the AEM Project Archetype, with an all module.
  • Maven and a JDK installed locally, so you can reproduce the pipeline build before you push.
  • Access to the Cloud Manager pipeline run, to download the Code Quality details and the build log.
  • The latest AEM SDK API dependency in your parent pom.xml.

The timeline you need to know

These dates come from the Adobe page Deprecated and Removed Features and APIs (last updated November 11, 2026 when I checked). Please re-check it before you plan your sprint, because Adobe can change it.

WhenWhat happens
Starting November 2026Actions Center sends notification emails as a reminder, if a pipeline has been executed recently.
December 2026Pipelines with code that uses these APIs pause in the Code Quality step. A Deployment Manager, Project Manager or Business Owner can override the issue so the pipeline continues.
January 2027Pipelines with code that uses these APIs fail in the Code Quality step. Deployments are blocked until the usage is removed.
March 31, 2027Environments that still use the deprecated APIs get the libraries injected into the custom project code and lose Adobe’s standard commitments for performance and availability. The libraries will need to be removed later in 2027.

Note:- The January failure applies to the APIs that Adobe lists with a target removal date of 3/31/2027. Other deprecated APIs in the same table have a removal date of 12/31/2027 (some tentative). Fix the March 2027 group first, and Adobe says you should still clean up the rest over time.

How Cloud Manager detects deprecated APIs

There are three places where you will see the problem, and it helps to know which is which.

  • Code Quality step: the custom rule “Do not use Experience Manager deprecated APIs” (SonarQube key java:S1874, group Cloud Service Compatibility, available since Cloud Manager 2026.1.0). Adobe describes it like this: deprecated APIs are marked with a removal date, and the closer that date gets, the higher the severity of violating the rule. An older rule with the key AMSCORE-553 covers APIs that are deprecated in the AEM context but not marked with the Java @Deprecated annotation.
  • Artifact Preparation step: the AEM Analyser prints warnings in the build log with the tag [region-deprecated-api]. Download the log and search for “Analyser warnings”.
  • Actions Center: notifications about deprecated APIs in your project.

Remember how severities work in Cloud Manager. Critical issues fail the pipeline immediately, Important issues pause it so that an approver can override or accept the failure, and Info issues have no impact. I explained the full model in Cloud Manager for AEM Developers and I will cover reading failed runs in more detail in a separate post.

Hands-on: find and fix deprecated APIs step by step

Step 1 : Update the AEM SDK API and the Analyser plugin

The plugin always checks against the latest available AEM SDK, and the SDK dependency in your project is what makes your IDE show deprecation warnings. Update both in the parent pom.xml. Adobe’s tutorial shows 1.6.16 as the latest plugin version as of February 2026, so look up the current one on Maven Central instead of copying my number.

<properties>
    <aemanalyser.version>1.6.16</aemanalyser.version> <!-- use the latest release -->
    <aem.sdk.api>REPLACE_WITH_LATEST_SDK_API_VERSION</aem.sdk.api>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>com.adobe.aem</groupId>
            <artifactId>aemanalyser-maven-plugin</artifactId>
            <version>${aemanalyser.version}</version>
            <extensions>true</extensions>
        </plugin>
    </plugins>
</build>

Step 2 : Make sure the all module runs the analyser

In the all module the plugin must run in the verify phase with the project-analyse goal. The project archetype already has this, but projects that were created years ago often do not.

<plugin>
    <groupId>com.adobe.aem</groupId>
    <artifactId>aemanalyser-maven-plugin</artifactId>
    <extensions>true</extensions>
    <executions>
        <execution>
            <id>analyse-project</id>
            <phase>verify</phase>
            <goals>
                <goal>project-analyse</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Step 3 : Run the build and read the warnings

Run the verify phase on the all module. This gives you all the [WARNING] lines in one place, which is easy to miss in a normal mvn clean install because the build still succeeds.

mvn clean verify -pl all

A warning looks like this (this is the example from Adobe’s tutorial, where the project is the WKND sample):

[WARNING] The analyser found the following warnings for author and publish :
[WARNING] [region-deprecated-api] com.adobe.aem.guides:aem-guides-wknd.core:4.0.5-SNAPSHOT: Usage of deprecated package found : org.apache.commons.lang : Commons Lang 2 is in maintenance mode. Commons Lang 3 should be used instead. Deprecated since 2021-04-30 For removal : 2021-12-31

Read it from left to right: the bundle that uses the API (core), the package (org.apache.commons.lang), the advice, and the dates. Make a list of every distinct package. Many warnings often share one root cause, for example one old library used in several bundles.

Note:- The report shows which OSGi bundle references the deprecated API. If that bundle is a third-party dependency and not your own, the fix is to update that dependency, not your code.

Step 4 : Replace Commons Lang 2 and Commons Collections 3

Adobe lists both as deprecated, with a tentative removal date of 12/31/2027, and says that in most cases you only need to adjust the package imports. Only a few classes or methods were renamed.

// Before
import org.apache.commons.lang.StringUtils;
import org.apache.commons.collections.CollectionUtils;

// After
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.collections4.CollectionUtils;

Add the new libraries to your core module if they are not already there, then compile. If a method no longer exists, the compiler tells you immediately.

Step 5 : Replace the AEM XSS API and the predicate package

Two packages are on the March 31, 2027 list and appear in lots of old servlets and components:

  • com.day.cq.xss (and com.day.cq.xss.taglib, com.day.cq.xss.impl): use org.apache.sling.xss instead. com.adobe.granite.xss has the same replacement.
  • com.day.cq.commons.predicate: use com.day.cq.commons.predicates. And com.day.cq.wcm.commons.utils: use com.day.cq.wcm.commons.
// Before
import com.adobe.granite.xss.XSSAPI;

// After
import org.apache.sling.xss.XSSAPI;

@Reference
private XSSAPI xssApi;

String safe = xssApi.encodeForHTML(rawValue);

Step 6 : Move file uploads to the Servlet API

org.apache.commons.fileupload is also on the March 31, 2027 list, and Adobe’s comment is to use the official Servlet API for file uploads. Search your servlets for ServletFileUpload and rewrite them to read the multipart request through the Servlet API. Test this one on a local SDK with a real file, because the old and the new API handle parameters differently.

Step 7 : Replace org.json, Guava and log4j

  • org.json: Adobe recommends the Apache Johnzon implementation of javax.json.
  • Google Guava (com.google.common): in many cases the JDK collections or Apache Commons Collections 4 are enough. If you really need Guava, include a current version in your own project. Adobe’s notes say that if you do, you must put it before the aem-sdk-api dependency in your Maven project so your code is wired to the new version.
  • Log4j 1 (org.apache.log4j): use SLF4J (recommended) or Log4j 2. Adobe also says to remove any use of ch.qos.logback, org.slf4j.event and org.slf4j.spi.
  • Felix webconsole and Jetty: remove code that uses org.apache.felix.webconsole* because the console is not accessible in Cloud Service, and migrate away from org.eclipse.jetty* or add the bundles Adobe lists.
// org.json replaced with javax.json (Johnzon)
import javax.json.Json;
import javax.json.JsonObject;

JsonObject payload = Json.createObjectBuilder()
        .add("title", title)
        .add("count", count)
        .build();
String body = payload.toString();

Step 8 : Update ACS AEM Commons and other third-party libraries

Several of the removal notes say the same thing: if you use ACS AEM Commons, update to at least 6.17.2 (the latest is recommended) and make sure you include the version for Cloud Service with the cloud classifier on the content package. A very common case is that your own code is clean but an old library pulls in the deprecated package. Update the library first and run Step 3 again. The exact artifact IDs and versions are in the ACS AEM Commons documentation linked in the References.

Step 9 : Verify locally, then in Cloud Manager

Run mvn clean verify -pl all again until there are no region-deprecated-api warnings. Then push to a feature branch, run a code-quality-only pipeline, and open the Code Quality details. Adobe says to confirm in Cloud Manager, by checking the result of the code quality step, that no deprecated API usage remains.

Common replacements at a glance

DeprecatedUse insteadTarget removal
com.day.cq.xss, com.adobe.granite.xssorg.apache.sling.xss3/31/2027 and 12/31/2027 (tentative)
com.day.cq.commons.predicatecom.day.cq.commons.predicates3/31/2027
com.day.cq.wcm.commons.utilscom.day.cq.wcm.commons3/31/2027
org.apache.commons.fileuploadServlet API for file uploads3/31/2027
org.apache.commons.langorg.apache.commons.lang312/31/2027 (tentative)
org.apache.commons.collectionsorg.apache.commons.collections412/31/2027 (tentative)
org.jsonApache Johnzon (javax.json)12/31/2027 (tentative)
org.osgi.service.httpOSGi Servlet Whiteboard12/31/2027 (tentative)
org.apache.log4jSLF4J or Log4j 2See removal guidance

Some packages in the March 2027 group have no code replacement, you just need to stop using them or bring your own version: org.bson, com.github.jknack.handlebars, org.apache.tika, opennlp.tools and org.apache.jackrabbit.webdav.client.methods. The full table, with deprecation dates, is on the Adobe page in the References section.

Deprecated features that are not Java APIs

The same Adobe page lists deprecated features too. They are not scanned by the Java rule, but they matter when you review a project:

  • JavaScript Use API for HTL: use the Java Use API (Sling Models).
  • SPA Editor: use the Universal Editor or the Content Fragment Editor for headless content.
  • Built-in APM integration (New Relic): the deadline to move to OpenTelemetry was November 30, 2026, so check this one first (a separate post is planned).
  • Foundation Components under /libs/foundation/components: deprecated since AEM 6.5, so move to Core Components.
  • Publish Content Tree workflow step: use the Tree Activation workflow step.
  • Developer Console JWT credentials: use Server-to-Server OAuth credentials.

Common mistakes and troubleshooting

SymptomLikely causeFix
Build is green but I see no deprecated warningsThe plugin is not in the verify phase of the all module, or you only looked at the end of the logRun mvn clean verify -pl all and search for region-deprecated-api
Warnings point to a bundle I did not writeA third-party dependency imports the deprecated packageUpdate that library (for ACS AEM Commons use at least 6.17.2 with the cloud classifier)
Local build is clean but Cloud Manager still reports issuesYour local SDK or plugin version is older than what Cloud Manager checksUpdate the AEM Analyser plugin and the SDK API dependency, then rebuild
Pipeline paused in Code QualityThe deprecated API rule found usage (December 2026 behavior)A Deployment Manager, Project Manager or Business Owner can override once, but fix the code before January 2027
After switching to Guava 33 the bundle does not startThe code is still wired to the older Guava from the SDKDeclare your Guava dependency before aem-sdk-api and run the analyser again
Import is marked optional and the pipeline passesOptional imports do not block deploymentsRemove it anyway, because it can break at runtime once the package is gone

One honest warning from experience: do not fix everything in one giant pull request. Replace one package per commit, so that if a behavior changes (for example in the multipart upload) you can find the commit quickly.

Hands-on challenge

Take one of your own projects, or the AEM Project Archetype output, and run mvn clean verify -pl all. Make a table of every region-deprecated-api warning with the bundle, the package and the target removal date from the Adobe page. Fix the March 31, 2027 items first and run the build again until the list is empty.

Key takeaways

  • Adobe removes several deprecated APIs on March 31, 2027. Pipelines pause in December 2026 and fail in January 2027 when the code still uses them.
  • The rule is Do not use Experience Manager deprecated APIs (java:S1874), and its severity grows as the removal date gets closer.
  • Reproduce it locally with the AEM Analyser Maven plugin: mvn clean verify -pl all and look for region-deprecated-api.
  • Most fixes are import changes: Commons Lang 3, Collections 4, org.apache.sling.xss, SLF4J.
  • If a third-party library is the cause, update it before you touch your code. For ACS AEM Commons use at least 6.17.2 with the cloud classifier.
  • Treat Analyser warnings as future pipeline failures.

Knowledge check

  1. In which month does Cloud Manager start to fail pipelines that use the deprecated APIs?
  2. Which roles can override a paused Code Quality step?
  3. Which Maven goal and phase run the AEM Analyser in the all module?
  4. What do you use instead of org.apache.commons.lang?
  5. What should you do first when the warning names a third-party bundle?
Answers

January 2027 (it pauses in December 2026). A Deployment Manager, a Project Manager or a Business Owner. The project-analyse goal in the verify phase. org.apache.commons.lang3. Update that third-party library to a version that no longer uses the deprecated package.

Frequently asked questions

Does this apply to AEM 6.5 or AEM 6.5 LTS?

No. The dates and the Cloud Manager rule are for AEM as a Cloud Service. But the same libraries are old on 6.5, so cleaning them up now makes a later migration easier.

Can I just override the paused pipeline and move on?

In December 2026 an approver can override it, so the pipeline continues. From January 2027 the step fails and deployments are blocked, and on March 31, 2027 the libraries are removed from the product injected into your code. An override only buys you time.

What if I really need Guava or Commons Lang 2?

Adobe’s guidance is to deploy your own version of the library in your project. Make sure all your bundles that use it are wired to your version, and verify with the Analyser plugin that the usage is no longer flagged.

Is the JavaScript Use API covered by this scan?

It is listed on the same Adobe page as a deprecated feature, with the Java Use API as the replacement. It is an HTL feature, not a Java package, so the Java API rule does not find it. Search your /apps HTL for data-sly-use pointing to a .js file.

Where do I see the full list of deprecated APIs?

On the Adobe page Deprecated and Removed Features and APIs, in the section Deprecated APIs. It has the package, the comment, the deprecation date and the target removal date.

Continue your learning

References

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.