Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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?

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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!

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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!