Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

svg error while building maven archetype

Avatar

Level 1

GantaNi_0-1752410939141.png

so i was trying this command to build a project for training but getting stuck with svg error 



GantaNi_1-1752411048336.png


can some one help me out here how to go further here?

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@GantaNi Please install

service pack 6.5.18 as you passed in the command as aemVersion oe the latest.


Santosh Sai

AEM BlogsLinkedIn


View solution in original post

7 Replies

Avatar

Community Advisor

Hi @GantaNi,

Disable includeExamples and includeErrorHandler

Try re-running your command without these two flags:

mvn -B archetype:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D archetypeVersion=54 \
 -D appTitle="Nikhil Project" \
 -D appId="nikhil" \
 -D groupId="com.nikhil" \
 -D artifactId=nikhil-project \
 -D version=1.0.0 \
 -D aemVersion=6.5.18 \
 -D frontendModule=general \
 -D singleCountry=n

This avoids the error-generating templates and lets you generate a working project. You can later manually copy the error handler or examples from another clean project if needed.

OR

 

Use an earlier or newer archetype version, like 42 or 53, which might not have this issue:

-D archetypeVersion=53

Santosh Sai

AEM BlogsLinkedIn


Avatar

Level 1

yes as we expected the build was sucessfull but the sample components and templates are not given getting this 

GantaNi_0-1752478101336.png


so could you please help me out how can i proceed further ?

Regards,

Nikhil Ganta.

 

 

Avatar

Level 6

Hi @GantaNi ,

 

Please use below command and open terminal as administrator. This will include examples as well. Change the values according to you. Was able to generate very recently with this.

 

You will get templates to create pages.

 

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=54 -D aemVersion=6.5.23 -D appTitle=”My Adobe Project” -D appId=”practice” -D groupId=”com.practise” -D frontendModule=general -D includeExamples=y -D includeDispatcherConfig=y

 

Uppari_Ramesh_0-1752497163102.png

 

 

Thanks,

Ramesh.

Avatar

Level 1

i have got build failure 

GantaNi_0-1752497980314.png

 

Avatar

Level 1

and my project bundle appears inactive 

GantaNi_0-1752499888338.png

 

Avatar

Correct answer by
Community Advisor

@GantaNi Please install

service pack 6.5.18 as you passed in the command as aemVersion oe the latest.


Santosh Sai

AEM BlogsLinkedIn


Avatar

Level 6

Hi @GantaNi ,

Do follow below steps as is

1. Open CMD as administrator.

2. Create a folder named author in downloads and copy author folder path.

4. Go to admin CMD and type cd and paste author folder path like cd C:\Users\your-user\Downloads\author

5. Now copy paste the mvn command to create project. 

6. Before pasting command, change command values like aemVersion according to your requirements.

7. Ensure having at least 3.3.1+ maven version in your system.

 

Thanks

Ramesh