AEM archetype 23/24 - Maven Multi module Project with multi tenancy | Community
Skip to main content
Shashi_Mulugu
Community Advisor
Community Advisor
October 5, 2020
Solved

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

  • October 5, 2020
  • 11 replies
  • 4061 views

Hello Team, @kaushalmall 

 

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

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

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 @kaushalmall 

11 replies

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAuthorAccepted solution
Community Advisor
October 6, 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 @kaushalmall