Friday 7 July 2023

java.nio.file.FileSystemException: dispatcher\src\conf.d\enabled_vhosts\aem_author.vhost: A required privilege is not held by the client.

When creating new AEM Project using maven archetype version 41, I was getting below error.

"[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:\Kishore\aem-nextjs\dispatcher\src\conf.d\enabled_vhosts\aem_author.vhost: A required privilege is not held by the client."

Below is the command to create AEM Project using Maven Archetype 41

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \

 -D archetypeGroupId=com.adobe.aem \

 -D archetypeArtifactId=aem-project-archetype \

 -D archetypeVersion=41\

 -D aemVersion=6.5.17 \

 -D appTitle="WKND App" \

 -D appId="wknd-app" \

 -D groupId="com.adobe.aem.guides.wkndapp" \

 -D frontendModule="decoupled"


To avoid this, run the command prompt or terminal as Administrator.

No comments :

Post a Comment