Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to Build proxy component for different Brand in AEM cloud SDK

Avatar

Level 2

Dear All,

 

One of my requirement is that , I want to build proxy component for reusability in my AEM cloud SDK , as shown below.

 

sunitaBorn_0-1622547398346.png

 

How can I build using latest arch type to get below folder structure with below pom.xml

 

*********** pom.xml inside aem-mysite-core (It should be proxy of core component) ********
<groupId>com.sunita.mysite</groupId>
    <artifactId>parent</artifactId>
    <name>AEM Cloud SDK MySite Core parent POM</name>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

 

*********** brand1 pom.xml (It should be proxy of mysite) ********
 <!-- Inheriting from parent pom mysite-->
    <parent>
        <groupId>com.sunita.mysite</groupId>
        <artifactId>parent</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>   

 

 <!--brand1 -->
    <groupId>com.adobe.aem.brand1</groupId>
    <artifactId>brand1</artifactId>
    <packaging>pom</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <description>Brand Site</description> 

 

Please help me how can I achieve this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

I hope you will be deployed both projects together in the same instance. In that case to proxy components, you don't need to do any changes in pom until you are not using java/model/bundles.

you can simply do a proxy similar to core componnets

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

I hope you will be deployed both projects together in the same instance. In that case to proxy components, you don't need to do any changes in pom until you are not using java/model/bundles.

you can simply do a proxy similar to core componnets