AEM Project archetype version 27 i'm getting error for multi-language | Community
Skip to main content
September 8, 2021
Solved

AEM Project archetype version 27 i'm getting error for multi-language

  • September 8, 2021
  • 1 reply
  • 646 views

Hi, 

 

I was trying to build an aem project with 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 genetated 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 from the archetype the project with these 2 languages?

 

 

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 Asutosh_Jena_

Hi @rinaudosal 

 

Please use the below command:

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" \
-D country="us" \
-D singleCountry=n \
-D includeExamples=y \
-D includeErrorHandler=y

 

Once the project is created, please create the language copy from the language masters page.

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
September 8, 2021

Hi @rinaudosal 

 

Please use the below command:

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" \
-D country="us" \
-D singleCountry=n \
-D includeExamples=y \
-D includeErrorHandler=y

 

Once the project is created, please create the language copy from the language masters page.

 

Thanks!