Skip to main content
Level 2
Aug 10, 2023 2:31 PM UTC
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
Community Advisor
Aug 10, 2023 2:41 PM UTC

@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

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
Aug 10, 2023 2:41 PM UTC

@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
Aug 10, 2023 2:44 PM UTC

Thanks .!!!
it works !!

Translate
New Member
Apr 29, 2025 6:18 PM UTC

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

Translate
New Member
Apr 29, 2025 6:22 PM UTC

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