Upgrade acs-commons in AEM 6.5 | Community
Skip to main content
Level 3
October 20, 2022
Solved

Upgrade acs-commons in AEM 6.5

  • October 20, 2022
  • 2 replies
  • 2906 views

Is there a procedure to upgrade acs-commons version in AEM 6.5?

Currently we have version 4.7 and we'd like to use the recent version on acs-commons?

I have downloaded the package from https://adobe-consulting-services.github.io/acs-aem-commons/.

Is it enough to just install this? Will the existing acs-commons content be affected with the version change?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

@pixislinger Upgrade the version in the POM, and run the tests to make sure nothing is breaking.

2 replies

ksh_ingole7
Community Advisor
Community Advisor
October 20, 2022

Hi @pixislinger 

 

There are two ways to install acs commons. One is to install the acs commons package in each of your aem instances. And the other way is to embed acs commons in your project so that it will be installed on your aem instances whenever you deploy your code. I would recommended you to embed acs to your project.

Below are the steps to be followed for AEMaaCS.

  1. Add the below dependency to your all project's pom.xml
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-ui.content</artifactId>
        <version>5.2.0</version>
        <type>zip</type>
        <classifier>min</classifier>
    </dependency>
    
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-ui.apps</artifactId>
        <version>5.2.0</version>
        <type>zip</type>
        <classifier>min</classifier> 
    </dependency>
  2. Add the below embed properties in your all project's pom.xml.
    <embedded>
                        <groupId>com.adobe.acs</groupId>
                        <artifactId>acs-aem-commons-ui.apps</artifactId>
                        <type>zip</type>
                        <target>/apps/my-app-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.acs</groupId>
                        <artifactId>acs-aem-commons-ui.content</artifactId>
                        <type>zip</type>
                        <target>/apps/my-app-packages/content/install</target>
                    </embedded>
  3. Add the below dependency to your core project's pom.xml
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-bundle</artifactId>
        <version>5.2.0</version>
        <scope>provided</scope>
    </dependency>

Below is a link to the acs commons documentation.

https://adobe-consulting-services.github.io/acs-aem-commons/pages/maven.html

 

Thanks

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
October 20, 2022

@pixislinger Upgrade the version in the POM, and run the tests to make sure nothing is breaking.

Level 3
October 20, 2022

Thanks @mayank_gandhi , @ksh_ingole7 

Does upgrading this break any existing acs-commons used content, say lists for example?

Mayank_Gandhi
Adobe Employee
Adobe Employee
October 20, 2022

@pixislinger not necessarily but we just saw some issue with latest cfp in forms with upgrade of commons thus the heads up.