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

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 The Author

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

    Unlocking Business Potential: The Power of Custom Application Development

    Like any savvy business leader, you’re likely always on the lookout for tools to give your company a competitive edge. And in doing so, you’ve undoubtedly considered investing in custom application development. But the question is, how do you ensure that such a major investment in a custom web application development provides a strong return on […]

  • Digital Products

    Mastering Legacy Application Modernization: Strategies for Success

    The ironic truth of the business world is that change is the only constant. But this means that failing to keep pace with the competition and its technologies will only end with you falling behind. That’s where legacy application modernization enters the fold. When you modernize legacy applications, your team gains access to new features […]

  • Digital Products

    CTO Confessions Podcast

    In this episode of CTO Confessions, Rob Phillips, the Vice President of Software Engineering at UDig, digs into his journey from a passionate technologist in his youth to a seasoned leader in the tech industry. He shares valuable lessons on transitioning to senior leadership, the importance of understanding and articulating company problems, and the art of empowering teams for high performance.

  • Digital Products

    Navigating the Challenges of On Premise to Cloud Migration

    In today’s rapidly evolving technological landscape, the shift from on premise solutions to cloud-based infrastructure has become a pivotal transformation for organizations seeking to modernize their IT operations. This transition holds the promise of increased agility, cost savings, and enhanced scalability. However, it is not without its set of formidable challenges that organizations must navigate. […]

  • Digital Products

    The Power of Transferrable Skills in Tech Projects

    Every project has its own unique elements that require flexibility to be effective and achieve success. This often requires picking up new pieces of a tech stack, learning a new programming language, or a new project methodology. Fortunately, there are also many transferrable skills that carry over from one project to the next. In my […]

  • Digital Products

    The Four Pillars of Effective Digital Product Development

    In 2020 alone, approximately two billion consumers purchased at least one digital product. From software licenses to mobile apps and tech tools, consumers are becoming increasingly active in the digital product market, a trend that has naturally spurred brands across a wide range of industries to reevaluate their digital product design and development process workflows. […]