I'm trying to build the local setup for WKND Project on my local using this command which is given in this link
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=39 \
-D appTitle="WKND Sites Project" \
-D appId="wknd" \
-D groupId="com.adobe.aem.guides" \
-D artifactId="aem-guides-wknd" \
-D package="com.adobe.aem.guides.wknd" \
-D version="0.0.1-SNAPSHOT" \
-D aemVersion="6.5.9"
So I'm getting this 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:\WKND\aem-guides-wknd\dispatcher\src\conf.d\enabled_vhosts\aem_author.vhost: A required privilege is not held by the client ->"
Can someone help me with this so setup the Project and solving the error
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @SanketJa1
The error message indicates that there is a file system permission issue while trying to generate the project using Maven. Specifically, the process does not have the required privileges to create or modify files in the specified directory.
Here are the steps to resolve this issue:
Run Command Prompt as Administrator: Ensure that you are running the command prompt or terminal with administrative privileges. This can be done by right-clicking on the Command Prompt icon and selecting "Run as administrator".
Check Directory Permissions: Verify that you have the necessary read/write permissions for the directory C:\WKND\aem-guides-wknd\dispatcher\src\conf.d\enabled_vhosts\
. You can check and modify the permissions by right-clicking on the directory, selecting "Properties", and navigating to the "Security" tab.
Antivirus/Defender Interference: Sometimes, antivirus software or Windows Defender may block certain operations. Temporarily disable your antivirus software and retry the operation to see if it resolves the issue.
File Ownership: Ensure that the files and directories are owned by your user account. You can change the ownership by:
Use a Different Directory: If the issue persists, try using a different directory where you have confirmed administrative rights. Sometimes specific directories might have restrictions.
Check Disk Space: Ensure that there is sufficient disk space available on the drive where you are trying to create the project.
Hi @SanketJa1
The error message indicates that there is a file system permission issue while trying to generate the project using Maven. Specifically, the process does not have the required privileges to create or modify files in the specified directory.
Here are the steps to resolve this issue:
Run Command Prompt as Administrator: Ensure that you are running the command prompt or terminal with administrative privileges. This can be done by right-clicking on the Command Prompt icon and selecting "Run as administrator".
Check Directory Permissions: Verify that you have the necessary read/write permissions for the directory C:\WKND\aem-guides-wknd\dispatcher\src\conf.d\enabled_vhosts\
. You can check and modify the permissions by right-clicking on the directory, selecting "Properties", and navigating to the "Security" tab.
Antivirus/Defender Interference: Sometimes, antivirus software or Windows Defender may block certain operations. Temporarily disable your antivirus software and retry the operation to see if it resolves the issue.
File Ownership: Ensure that the files and directories are owned by your user account. You can change the ownership by:
Use a Different Directory: If the issue persists, try using a different directory where you have confirmed administrative rights. Sometimes specific directories might have restrictions.
Check Disk Space: Ensure that there is sufficient disk space available on the drive where you are trying to create the project.