Issues in Building a project | Community
Skip to main content
Level 2
January 16, 2024
Solved

Issues in Building a project

  • January 16, 2024
  • 3 replies
  • 1442 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sudheer_Sundalam

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

3 replies

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
January 16, 2024

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

Punitha77Author
Level 2
January 16, 2024

Thank you!!It worked

Sudheer_Sundalam
Community Advisor
Community Advisor
January 16, 2024

Happy to help!

Raja_Reddy
Community Advisor
Community Advisor
January 16, 2024

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/archetype/overview.html?lang=en 

 

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"



Punitha77Author
Level 2
January 16, 2024

Thanks for your Suggestion @raja_reddy 

 

Harwinder-singh
Community Advisor
Community Advisor
January 16, 2024
Punitha77Author
Level 2
January 16, 2024

Thanks for your suggestion harwinder-singh