Multi Site AEM in a same maven project

anthonyt2853861 06-02-2020

Is possible to have multi site within a single project maven where they don't use the same core, apps and content folders ?


For example in a same project maven I want to have a first site and second site and I want that the site1 has core, apps and content separate of the site2.

Accepted Solutions (1)

Accepted Solutions (1)


Modules are defined in the parent project POM file:




So, you can create site specific modules as per your business need in the parent POM. More details at [1]



Answers (1)

Answers (1)


As @jbrar already mentioned it's all about the maven structure.


You just have to create multiple sub-modules, which contain the bundle, the templats/components/dialogs for a single site. You need to ensure that both are not deploying to the same repo location and do not have clashing bundle names. But besides that it's pretty straight-foward.