AEM archetype 23/24 - Maven Multi module Project with multi tenancy

Shashi_Mulugu

MVP

05-10-2020

Hello Team, @kaushal_mall 

 

I want to create a latest AEM maven archetype project using archetype version 23 or 24, which has new project/module name "all" which will generate single package/zip containing all other modules targeted output, via Cloud Manager we can only deploy all package.

 

Here If I want profile based builds for my local/DEV instances which is not AMS/Cloud, i am able to configure Profile based module builds, but how can i configure what to embed in all package in all/pom.xml via profiles?

 

Any insights?

 

Sample Project Structure:-

MyProject

      tenant1

            core

            ui.apps

      tenant2

            core

            ui.apps

      tenant2

            core

            ui.apps

      all

 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Shashi_Mulugu

MVP

06-10-2020

This can't be done via profile based embeds in all. Need todo via adding a "autoInstallPackage" profile to tenant 1 and tenant 2 ui.apps modules, then you can install them separately, instead of trying to embed them in the all package, which has the autoInstallSinglePackage profile

 

But this will not work in archetype 24. Need to submit Github issue.

 

Thanks @kaushal_mall 

Answers (0)