Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

7 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 3

I am getting an exception after adding these. java.lang.IllegalArgumentException: Classpath resource not found: /policy-page.json

Avatar

Community Advisor

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/deploy...

 

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

Himanshu Jain

Avatar

Level 3

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