AEM: Error: java.nio.file.FileSystemException .\dispatcher\.\enabled_vhosts\..vhost:

Hello, Lets see how to fix common issue that we face while creating an AEM project using archetype 24 with Dispatcher Configuration.

Maven Command:

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=24 -D appTitle="Project Title" -D appId="yourappid" -D groupId="com.xxxx.xxxx" -D aemVersion=version -D includeDispatcherConfig=y

Error:

[INFO] BUILD FAILURE

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

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


Fix: Run the command prompt as Administrator and then run Maven command.

Meet you in next post. Thank you for your time.

AG

2 comments:

  1. For me, I don't have admin rights to run command prompt. I ran the
    maven command with n as option value(-D includeDispatcherConfig=n) to exclude dispatcher module from my local project.
    Thanks for the tip.

    ReplyDelete