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.

Table of contents
- Why this matters
- Who should read this
- Prerequisites
- The timeline you need to know
- How Cloud Manager detects deprecated APIs
- Hands-on: find and fix deprecated APIs step by step
- Common replacements at a glance
- Deprecated features that are not Java APIs
- Common mistakes and troubleshooting
- Hands-on challenge
- Key takeaways
- Knowledge check
- Frequently asked questions
- Continue your learning
- References
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
allmodule. - 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.
| When | What happens |
|---|---|
| Starting November 2026 | Actions Center sends notification emails as a reminder, if a pipeline has been executed recently. |
| December 2026 | Pipelines 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 2027 | Pipelines with code that uses these APIs fail in the Code Quality step. Deployments are blocked until the usage is removed. |
| March 31, 2027 | Environments 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 keyAMSCORE-553covers APIs that are deprecated in the AEM context but not marked with the Java@Deprecatedannotation. - 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(andcom.day.cq.xss.taglib,com.day.cq.xss.impl): useorg.apache.sling.xssinstead.com.adobe.granite.xsshas the same replacement.com.day.cq.commons.predicate: usecom.day.cq.commons.predicates. Andcom.day.cq.wcm.commons.utils: usecom.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 ofjavax.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 theaem-sdk-apidependency 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 ofch.qos.logback,org.slf4j.eventandorg.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 fromorg.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
| Deprecated | Use instead | Target removal |
|---|---|---|
com.day.cq.xss, com.adobe.granite.xss | org.apache.sling.xss | 3/31/2027 and 12/31/2027 (tentative) |
com.day.cq.commons.predicate | com.day.cq.commons.predicates | 3/31/2027 |
com.day.cq.wcm.commons.utils | com.day.cq.wcm.commons | 3/31/2027 |
org.apache.commons.fileupload | Servlet API for file uploads | 3/31/2027 |
org.apache.commons.lang | org.apache.commons.lang3 | 12/31/2027 (tentative) |
org.apache.commons.collections | org.apache.commons.collections4 | 12/31/2027 (tentative) |
org.json | Apache Johnzon (javax.json) | 12/31/2027 (tentative) |
org.osgi.service.http | OSGi Servlet Whiteboard | 12/31/2027 (tentative) |
org.apache.log4j | SLF4J or Log4j 2 | See 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
| Symptom | Likely cause | Fix |
|---|---|---|
| Build is green but I see no deprecated warnings | The plugin is not in the verify phase of the all module, or you only looked at the end of the log | Run mvn clean verify -pl all and search for region-deprecated-api |
| Warnings point to a bundle I did not write | A third-party dependency imports the deprecated package | Update 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 issues | Your local SDK or plugin version is older than what Cloud Manager checks | Update the AEM Analyser plugin and the SDK API dependency, then rebuild |
| Pipeline paused in Code Quality | The 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 start | The code is still wired to the older Guava from the SDK | Declare your Guava dependency before aem-sdk-api and run the analyser again |
| Import is marked optional and the pipeline passes | Optional imports do not block deployments | Remove 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 alland look forregion-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
cloudclassifier. - Treat Analyser warnings as future pipeline failures.
Knowledge check
- In which month does Cloud Manager start to fail pipelines that use the deprecated APIs?
- Which roles can override a paused Code Quality step?
- Which Maven goal and phase run the AEM Analyser in the
allmodule? - What do you use instead of
org.apache.commons.lang? - 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
- Cloud Manager basics: Cloud Manager for AEM Developers.
- OSGi configs: AEM as a Cloud Service: Best Practices for OSGi Configs and Environment Variables.
- What changed from 6.5: AEMaaCS vs AEM 6.5: What Developers Must Unlearn.
- Practice quiz: AEM Cloud Manager practice test.
References
- Deprecated and Removed Features and APIs (Adobe Experience League)
- Custom Code Quality Rules (Cloud Manager)
- Code Quality Testing (Cloud Manager)
- Find and remove deprecated APIs in AEM as a Cloud Service (tutorial)
- AEM as a Cloud Service SDK Build Analyzer Maven Plugin
- aemanalyser-maven-plugin on GitHub
- ACS AEM Commons
Leave a Reply