Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

I'm trying to build the local setup for WKND project

Avatar

Level 1

I'm trying to build the local setup for WKND Project on my local using this command which is given in this link 

https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-wknd-tutorial-de...


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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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:

  1. 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".

  2. 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.

  3. 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.

  4. File Ownership: Ensure that the files and directories are owned by your user account. You can change the ownership by:

    • Right-clicking on the directory.
    • Selecting "Properties".
    • Going to the "Security" tab.
    • Clicking "Advanced".
    • Changing the owner to your user account.
  5. 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.

  6. Check Disk Space: Ensure that there is sufficient disk space available on the drive where you are trying to create the project.



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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:

  1. 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".

  2. 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.

  3. 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.

  4. File Ownership: Ensure that the files and directories are owned by your user account. You can change the ownership by:

    • Right-clicking on the directory.
    • Selecting "Properties".
    • Going to the "Security" tab.
    • Clicking "Advanced".
    • Changing the owner to your user account.
  5. 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.

  6. Check Disk Space: Ensure that there is sufficient disk space available on the drive where you are trying to create the project.



Arun Patidar

Avatar

Level 5

@SanketJa1 

To resolve this issue, Run the command prompt or terminal as Administrator