Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

ACS-commons 5.1.0 deleting after code push (Not a cloud service)

Avatar

Level 3

Hi Team,

 

We are trying to include acs-commons through a deployment but are unable to, by adding dependency through pom files. Also, tried directly installing but after code push, it is wiping off. Can someone help me with this issue? 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@gvaem One last solution worth to check - filter.xml. ACS- Common Tools install under /apps/cq/core/content/nav/tools check if you have any filters in ui.apps as mentioned here https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/420 that should solve your problem!

View solution in original post

11 Replies

Avatar

Community Advisor

Hi @gvaem ,

It is recommended to embed ACS Commons in your project so that it will be installed on your AEM instances whenever you deploy your code. 

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.1.0</version>
        <type>zip</type>
        <classifier>min</classifier>
    </dependency>
    <dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-ui.apps</artifactId>
        <version>5.1.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/mysite-packages/application/install</target>
    </embedded>
    <embedded>
          <groupId>com.adobe.acs</groupId>
          <artifactId>acs-aem-commons-ui.content</artifactId>
          <type>zip</type>
          <target>/apps/mysite-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.1.0</version>
        <scope>provided</scope>
    </dependency>
             Screen Shot 2022-06-28 at 2.21.50 PM.png

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

Hope that helps!

Regards,

Santosh

Avatar

Level 3

This doesn't work for local instances. I am not seeing acs commons through sites. Any suggestions?

Avatar

Level 3

It shows installed but on the front end site unable see the acs commons tab

Screen Shot 2022-06-28 at 2.56.20 PM.pngScreen Shot 2022-06-28 at 2.55.33 PM.png

Avatar

Community Advisor

@gvaem It doesn't really matter either it's local or any other environments, though I'm using local instance. Which version of AEM you are using? It should work, I can see that with the code deployment. Please verify the steps above you have followed properly.

  • Try checking in Incognito mode, may helps.
  • Base on above screenshot I can see you have conflicts - might Installed manually earlier - Uninstall first all of them - delete - then deploy your code.

Screen Shot 2022-06-28 at 3.08.57 PM.png

 

Avatar

Level 3

I am using 6.5.12 and acs commons 5.1.0. used exactly the same steps and i can see the folders in crx/de.

Avatar

Community Advisor

@gvaem 

  1. Uninstall first all of them - delete - then deploy your code.
  2. Once done check it in Incognito mode.

Avatar

Community Advisor

Check with your uber jar VS your AEM version, that should solve your problem, As I have created project from scratch and used above approach works for me.

Screen Shot 2022-06-28 at 2.21.50 PM.pngScreen Shot 2022-06-28 at 3.08.57 PM.png

Avatar

Level 3

Thanks Santosh!

 

<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.5.12</version>
<scope>provided</scope>
</dependency>

Screen Shot 2022-06-29 at 12.55.06 AM.pngDo you think i am missing some thing in this? 

Avatar

Correct answer by
Community Advisor

@gvaem One last solution worth to check - filter.xml. ACS- Common Tools install under /apps/cq/core/content/nav/tools check if you have any filters in ui.apps as mentioned here https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/420 that should solve your problem!

Avatar

Level 3

/apps/cq is added in the filters which is causing the issue.