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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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.
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.
Thank you!!It worked
Happy to help!
@Punitha77 We hope you found the AEM community valuable. We anticipate your return as either a learner or a contributor. The community benefits from SMEs like you. Please ask your AEM peers to join and contribute. Happy AEM learning!
Views
Replies
Total Likes
Hi @Punitha77
Please try the below snippet and check the url as well.
https://github.com/adobe/aem-project-archetype
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"
Thanks for your Suggestion @Raja_Reddy
@Punitha77 You can check this out - https://stackoverflow.com/questions/70427604/groovy-warning-an-illegal-reflective-access-operation-h...
More details on why you are seeing this issue are available here - https://issues.apache.org/jira/browse/GROOVY-8339
Thanks for your suggestion harwinder-singh
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies