Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

rinaudosal
Level 1
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
asutosh_jena
Correct answer by
Community Advisor
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
asutosh_jena
Correct answer by
Community Advisor
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