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

Issues in Building a project

Avatar

Level 2

Hi All,

 

When trying to build the project using maven command. I find the below issue.Please help with this issue

Maven Command

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

 

Error

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/XXXX/.m2/repository/org/codehaus/groovy/groovy-all/2.4.16/groovy-all-2.4.16.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Creating content skeleton...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:35 min
[INFO] Finished at: 2024-01-16T20:15:44+05:30
[INFO] ------------------------------------------------------------------------
[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\XXXX\Desktop\New folder (2)\aem-guides-wknd\dispatcher\src\conf.d\enabled_vhosts\aem_author.vhost: A required privilege is not held by the client. ->

 

 

Regards,

Punitha

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Punitha77 ,

Delete this existing project which was not created successfully to avoid confusion. Open the "command prompt" as "Administrator", navigate to the folder where you want to create your project and run the maven archetype command again. You should be able to create the project without any issues.

View solution in original post

7 Replies

Avatar

Correct answer by
Community Advisor

@Punitha77 ,

Delete this existing project which was not created successfully to avoid confusion. Open the "command prompt" as "Administrator", navigate to the folder where you want to create your project and run the maven archetype command again. You should be able to create the project without any issues.

Avatar

Community Advisor

Hi @Punitha77 
Please try the below snippet and check the url as well.

https://github.com/adobe/aem-project-archetype 

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetyp... 

 

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=47\
 -D appTitle="My Site" \
 -D appId="mysite" \
 -D groupId="com.mysite"