AEM Project archetype error for multi-language project

245 views Asked by At

I was trying to build an AEM project with a Maven archetype project version 27 and AEM version 6.4.8.4. I'm wondering to generate the project in two languages, English and Ukrainian, but after the generation of the archetype the project is not generated correctly. I had executed the following command for two languages:

mvn -B archetype:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=27 \
-D appTitle="My Multilanguage project" \
-D appId="my-project" \
-D artifactId="my-project" \
-D groupId="com.my.project" \
-D frontendModule="react" \
-D aemVersion="6.4.8.4" \
-D language=en,uk \
-D includeExamples=y \
-D includeErrorHandler=y

How can I generate the project in two languages?

1

There are 1 answers

0
Dawid Pura On

Regarding the code of AEM archetye, I don't think a multiple language rollout is possible. There is no loop over languages and no split of the parameter itself by any specific delimiter, so I think you need to alter that setup later on.