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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Project creation using archtype

Avatar

Level 3

Hello Team,

 

I was trying to create a new project for SPA app and below is command used to create a project:

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=27 -D appTitle="My SPA React App" -D appId="my-spa-react" -D artifactId="aem-guides-wknd-spa.react" -D groupId="com.adobe.aem.my.app.react" -D frontendModule="react" -D aemVersion="cloud"

 

Project getting created with following error message:

pradeepmoolemane_0-1656744229969.png

 

Not sure what privilege need to set before executing command. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@pradeepmoolemane If you are on Windows machine, Run your Command Prompt as Adiministrator and then execute maven command. 

For other OS use sudo or use a user which has proper permission. For MAC/Linux, you can use sudo su -user to swirch to a appropriate user. Then execute maven commands.

View solution in original post

2 Replies

Avatar

Level 5

This isn't a problem with application permissions, but a problem with the operating system permissions. See FileSystemException.

 

The issue can be fixed by running the Maven command as a Elevated user or Run as Administrator.

Avatar

Correct answer by
Community Advisor

@pradeepmoolemane If you are on Windows machine, Run your Command Prompt as Adiministrator and then execute maven command. 

For other OS use sudo or use a user which has proper permission. For MAC/Linux, you can use sudo su -user to swirch to a appropriate user. Then execute maven commands.