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.
Solved! Go to Solution.
Views
Replies
Total Likes
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.
<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>
<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>
<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
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.
<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>
<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>
<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
Thanks for the detailed solution..
I am getting an exception after adding these. java.lang.IllegalArgumentException: Classpath resource not found: /policy-page.json
Views
Replies
Total Likes
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
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
https://sling.apache.org/documentation/bundles/repository-initialization.html
Can someone help me without the could service also? The package is getting deleted after the code push.
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
Views
Likes
Replies
Views
Likes
Replies