How to add ACS AEM Commons to your AEM web console for creating service user? | Community
Skip to main content
Level 3
March 26, 2022
Solved

How to add ACS AEM Commons to your AEM web console for creating service user?

  • March 26, 2022
  • 4 replies
  • 9644 views

Question:

Successfully done with the installation of ACS-AEM-Commons-Content package version 5.2.0 but

struggling to understand the stepwise procedure for manipulation of pom.xml file for using the ACS AEM Commons. Getting issues while adding dependencies to the file.

 

Details:

Using AEM as a cloud service.

Best answer by JeevanRaj

Hi @manasi29 

 

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

4 replies

JeevanRaj
Community Advisor
JeevanRajCommunity AdvisorAccepted solution
Community Advisor
March 26, 2022

Hi @manasi29 

 

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

Manasi29Author
Level 3
April 12, 2022

Thanks for the detailed solution..

Anish-Sinha
Adobe Employee
Adobe Employee
March 28, 2022

Hi @manasi29 ,

The recommended  way for creating system user or user management is repo init. Please go through this article.

https://sling.apache.org/documentation/bundles/repository-initialization.html

https://bimmisoi.blogspot.com/2021/08/create-system-user-using-repository.html

 

Himanshu_Jain
Community Advisor
Community Advisor
March 28, 2022

Repoinit

For the following cases, it is preferable to take the approach of hand coding explicit content creation repoinit statements in OSGI factory configurations:

  • Create/delete/disable service users

  • Create/delete groups

  • Create/delete users

  • Add ACLs

Check https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/deploying/overview.html?lang=en#repoinit

 

 https://sling.apache.org/documentation/bundles/repository-initialization.html 

Himanshu Jain
Level 3
June 28, 2022

Can someone help me without the could service also? The package is getting deleted after the code push.

JeevanRaj
Community Advisor
Community Advisor
June 28, 2022

The steps to embed ACS Commons remain the same for both AEM 6.x and AEMaaCS.

 

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