Your Privacy

This site uses cookies to enhance your browsing experience and deliver personalized content. By continuing to use this site, you consent to our use of cookies.
COOKIE POLICY

Skip to main content

AEM 6.4 Pattern Detector

AEM 6.4 Pattern Detector
Back to insights

A recurring task involved with Adobe Experience Manager upgrades is preparing the current AEM implementation against the target AEM version. Until AEM 6.4, this was a completely manual process that involved combing through the current AEM implementation for deprecations. Now, in AEM 6.4, there is a new feature called the “Pattern Detector” that automatically analyzes the current implementation and then generates a list of upgrade incompatibilities. The following article will outline the steps involved with running the Pattern Detector on a standalone AEM 6.3 author instance by: launching the author instance, creating an Adobe Maven Archetype 11 project, deploying the code to the author instance, developing a template that violates AEM6.4 standards, installing the Pattern Detector, and running the Pattern Detector.

Launching the Author Instance

Obtain a copy of the AEM 6.3 jar and license. Rename the jar file so that it is “aem-author-4502.jar”. Place the jar file in a folder where you want to deploy the AEM application. Open a terminal or command prompt, navigate to the folder where you placed the jar file, and run the command “java -jar aem-author-4502.jar -unpack”. Execute “./crx-quickstart/bin/quickstart”.

Creating an Adobe Maven Archetype 11 Project

Follow the steps outlined in this URL to create an Adobe Maven Archetype 11 project and import it into Eclipse: https://adobe.ly/2HHBmmr

Deploying the Code to the Author Instance

Deploy the code to the author instance by executing “mvn -PautoInstallPackage install”.

Developing a Template that Violates AEM 6.4 Standards

Create a new template beneath /apps/AEM63App/templates by right-clicking the aforementioned folder and selecting “Create” and then “Create Template” from the menu. The “Label”, “Title”, and “Description” should all be “Test”. Enter “cq:Template” as the “Resource Type” and select “Next”, “Next”, “Next”, “OK.” Right-click the jcr:content node beneath “Test” and select “Create” and then “Create Node”. The name of the node should be “captcha” and the type should be “nt:unstructured”. Only the newly created node, add a property called “sling:resourceType” of Type “String” and set the Value to “foundation/components/form/captcha”. Click the Save All button.

Installing the Pattern Detector

Log into Adobe Package Share and then navigate to this link: https://bit.ly/2LgX8vD. Select the Assets tab and download the package. Navigate to http://localhost:4502/crx/packmgr, upload, and install the package.

Running the Pattern Detector

Navigate to http://localhost:4502/system/console. Hover over the Status option in the menu and select Pattern Detector from the drop-down. In the results you should see the following entry that indicates an incompatibility “Cross-boundary resource type usage of internal marked path /libs/foundation/components
/form/captcha referenced at /apps/AEM63App/templates/test/jcr
:content/captcha”. This captcha component is problematic because it references the /libs form of the component. Adobe stores the implementation of the out of the box component in the /libs folder. In this case, if the out of the box component changes, the dependent component will change and may break.

This article explained how to obtain, install, and use Adobe’s new Pattern Detector. The Pattern Detector will help to catch issues during the analysis phase of an AEM upgrade. Do not rely solely on the Pattern Detector to catch all upgrade issues. There is still value in performing a manual analysis of the application. Augment manual analysis with the Pattern Detector to have the greatest chance of catching all upgrade issues.

About Cody Halbleib

Cody Halbleib is a Senior Consultant on the Software team. His family is his partner, Jamie, and his Border Collie mix, Walter.

Digging In

  • Digital Products

    What to Ask in a UX Discovery Session

    Better questions lead to better design. In my years as a UI/UX designer, I’ve learned that many design challenges may come from misalignment at the start. Discovery sessions are where product clarity is either made or missed. These are a few discovery questions I consistently return to in the discovery phase of my UX design […]

  • Digital Products

    Designing For Play and Friction in a Fast-Paced World

    At UDig, play is an integral part of our philosophy. “Having fun” is embedded in our culture, and we always find opportunities to use play to encourage collaboration, ignite creativity, and make room for bold experimentation to build stronger teams and solve problems ranging from the seemingly simple to the most complex. I always have […]

  • Digital Products

    Config 2025 Day Two Recap

    It felt as though Config 2025 ended as soon as it began, and I believe those of us that attended are all the better for it. By the end of the day, various inspirational and informative talks had been given by thought leaders and innovators in the product space. Between sessions, we had the opportunity […]

  • Digital Products

    Inside Config 2025: What’s New in Figma

    Config 2025 kicked off with a bang on Day 1. Figma’s annual conference brings together designers, developers, and all those involved in the making of a product. The 2-day event has a stacked lineup of accomplished speakers ready to share their insights on the world of product building. At today’s opening keynote, the Figma team, […]

  • Digital Products

    Choosing the Right Modernization Approach

    When organizations decide it’s time to modernize their technology infrastructure, choosing the right approach is crucial. Modernization isn’t merely a technical upgrade; it’s a strategic business move that significantly impacts growth, agility, and long-term success. Here’s how your company can effectively begin to select the best modernization strategy tailored to your goals and challenges. In […]

  • Digital Products

    TAG Panel: Differentiate Your Customer Experience

    Join the CX and Product Management Societies to hear from our panel of Human-Centered Design experts on the business value of Agentic AI.