ACS-commons 5.1.0 deleting after code push (Not a cloud service) | Community
Skip to main content
Level 3
June 28, 2022
Solved

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

  • June 28, 2022
  • 1 reply
  • 3244 views

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? 

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 SantoshSai

Thanks Santosh!

 

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

Do you think i am missing some thing in this? 


@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!

1 reply

SantoshSai
Community Advisor
Community Advisor
June 28, 2022

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>
             

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

Hope that helps!

Regards,

Santosh

Santosh Sai
gvaemAuthor
Level 3
June 28, 2022

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

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
June 29, 2022

Thanks Santosh!

 

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

Do you think i am missing some thing in this? 


@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!

Santosh Sai