how to solve this when i try to build aem-archetype | Community
Skip to main content
Level 2
August 10, 2023
Solved

how to solve this when i try to build aem-archetype


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: java.nio.file.FileSystemException: C:\Users\Mohammed Skouti\Downloads\aemservertest\aem-guides-wknd\dispatcher\src\conf.d\enabled_vhosts\default.vhost: A required privilege is not held by the client. -> [Help 1]

Sudheer_Sundalam
Sudheer_SundalamAccepted solution
New Participant
August 10, 2023

@mohammedskouti ,

It seems to be a permission issue on the windows machine. Please try the following:

Open the command window as an Administrator(Right click on the command prompt and run as Administrator) and run the maven archetype generation command in this command prompt.

 

Hope this helps!

4 replies

New Participant
April 29, 2025

Somehow it did not worked for me even with Administrator  role on CMD. so I tried on git bash in administrator mode and it works perfectly 

Translate
New Participant
April 29, 2025

Somehow it did not worked for me even with Administrator  role on CMD. so I tried on bash and it works perfectly 

Translate
Sudheer_Sundalam
Sudheer_SundalamAccepted solution
New Participant
August 10, 2023

@mohammedskouti ,

It seems to be a permission issue on the windows machine. Please try the following:

Open the command window as an Administrator(Right click on the command prompt and run as Administrator) and run the maven archetype generation command in this command prompt.

 

Hope this helps!

Translate
Level 2
August 10, 2023

Thanks .!!!
it works !!

Translate