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

  • August 10, 2023
  • 3 replies
  • 1929 views


[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]

Best answer by Sudheer_Sundalam

@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!

3 replies

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
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!

Level 2
August 10, 2023

Thanks .!!!
it works !!

New Member
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 

New Member
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