Sunday, 3 March 2024

ACS common and Core Components Build and Deployment along with the code.

 Integrate the WCM core components with AEM codebase


Core Components Integration

1. update all/pom.xml

a. Add below dependencies


<dependency>

    <groupId>com.adobe.cq</groupId>

    <artifactId>core.wcm.components.content</artifactId>

    <type>zip</type>

</dependency>

<dependency>

    <groupId>com.adobe.cq</groupId>

    <artifactId>core.wcm.components.config</artifactId>

    <type>zip</type>

</dependency>

<dependency>

    <groupId>com.adobe.cq</groupId>

    <artifactId>core.wcm.components.all</artifactId>

    <type>zip</type>

</dependency>


b. Add subpackage as a sibling XML element to embeddeds


<subPackages>

    <subPackage>

        <groupId>com.adobe.cq</groupId>

        <artifactId>core.wcm.components.all</artifactId>

        <filter>true</filter>

    </subPackage>

</subPackages>

c. Add Embedds

<embedded>

    <groupId>com.adobe.cq</groupId>

    <artifactId>core.wcm.components.all</artifactId>

    <type>zip</type>

    <target>/apps/mysite-vendor-packages/application/install</target>

</embedded>

2. Update ui.apps/pom.xml

a. Add below dependency under dependencies section.

<dependency>

    <groupId>com.adobe.cq</groupId>

    <artifactId>core.wcm.components.all</artifactId>

    <type>zip</type>

</dependency>


b. Add below dependency under plugins section


<dependency>

    <groupId>com.adobe.cq</groupId>

    <artifactId>core.wcm.components.all</artifactId>

</dependency>


3. Parent pom.xml

a. Add below dependency under dependencyManagement/dependencies section.


<dependency>

  <groupId>com.adobe.cq</groupId>

  <artifactId>core.wcm.components.all</artifactId>

  <type>zip</type>

  <version>${core.wcm.components.version}</version>

  <scope>provided</scope>

</dependency>


b. Finally, mention the required version of the ACS commons under properties section

<core.wcm.components.version>2.17.12<core.wcm.components.version>




ACS Commons Integration

1. Update all/pom.xml

a. Add the embeddeds

<embedded>
    <groupId>com.adobe.acs</groupId>
    <artifactId>acs-aem-commons-all</artifactId>
    <type>zip</type>
    <target>/apps/my-app-vendor-packages/container/install</target>
    <filter>true</filter>
    <isAllVersionsFilter>true</isAllVersionsFilter>
</embedded>

b. Add dependency

<dependency>
    <groupId>com.adobe.acs</groupId>
    <artifactId>acs-aem-commons-all</artifactId>
    <version>6.5.0</version>
    <type>zip</type>
</dependency>

2. Update the core/pom.xml

a. Add into dependencies

<dependency>
    <groupId>com.adobe.acs</groupId>
    <artifactId>acs-aem-commons-bundle</artifactId>
    <version>6.5.0</version>
    <scope>provided</scope>
</dependency>

No comments:

Post a Comment

Dispatcher configurations in AEM - 2

 Dispatcher configuration 1. The Dispatcher configuration is stored in the dispatcher.any text file. 2. The file contains a series of single...