command run to create a project :
mvn archetype:generate -DgroupId=com.ashwin -DartifactId=sample-project -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=24 -Dversion=1.0-SNAPSHOT
error I am getting :
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.552 s
[INFO] Finished at: 2024-10-27T23:41:57+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.3.0:generate (default-cli) on project standalone-pom: Error merging velocity templates: Encountered "<EOF>" at archetype-resources/ui.content/src/main/content/jcr_root/content/dam/__appId__/_jcr_content/folderThumbnail[line 113, column 926]
[ERROR] Was expecting one of:
[ERROR] "\u001c" ...
[ERROR] "\u001c" ...
[ERROR] "||" ...
[ERROR] "|" ...
[ERROR] "(" ...
[ERROR] ")" ...
[ERROR] <ESCAPE_DIRECTIVE> ...
[ERROR] "]]#" ...
[ERROR] <WHITESPACE> ...
[ERROR] <NEWLINE> ...
[ERROR] <SUFFIX> ...
[ERROR] <STRING_LITERAL> ...
[ERROR] <INTEGER_LITERAL> ...
[ERROR] <FLOATING_POINT_LITERAL> ...
[ERROR] <DOT> ...
[ERROR] "{" ...
[ERROR] "}" ...
[ERROR] "\\\\" ...
[ERROR] "\\" ...
[ERROR] <TEXT> ...
[ERROR] <INLINE_TEXT> ...
[ERROR] <EMPTY_INDEX> ...
[ERROR] "{" ...
[ERROR] "\u001c" ...
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
properties I provided to create project :
appId: sample
groupId: com.ashwin
version: 1.0-SNAPSHOT
appTitle: sampleproject
language: en
country: us
singleCountry: y
aemVersion: cloud
sdkVersion: latest
includeExamples: n
includeErrorHandler: n
frontendModule: general
includeDispatcherConfig: y
includeCommerce: n
commerceEndpoint: https://hostname.com/graphql
datalayer: y
amp: n
package: com.ashwin
artifactId: sample-project
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Please paste the command in notepad and update the " " quotes properly (updated in above mvn command. Please try again). i have tried the same it is working as expected
If still facing issue, please run the command prompt in administrator mode to give full permission -
1. Start command prompt terminal with administrator rights and run the same maven command. It worked as expected and build is success
2. To start command prompt with admin rights, right click on cmd and click on run as administrator
Hope this helps !
Thanks
Hi @ashwinka,
That is a quite old archetype version you are using there. I tried version 39 just a few days ago and it works fine. Check out this official tutorial: https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-wknd-tutorial-de...
Hope this helps,
Daniel
Hi @daniel-strmecki ,
I tried the archetype version 39 , still facing the same issue
Thanks for the reply ,
Ashwin
Views
Replies
Total Likes
As @daniel-strmecki mentioned, you're using old maven archetype version and archetype repository
(org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate) is not defined in the command you posted
Please use the new version and update the appTitle, artifactId, appID as per your requirements
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.18"
Latest archetype details are listed here - https://github.com/adobe/aem-project-archetype#usage
For detailed document : https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-wknd-tutorial-de...
Hope this helps !
Thanks
Views
Replies
Total Likes
Please paste the command in notepad and update the " " quotes properly (updated in above mvn command. Please try again). i have tried the same it is working as expected
If still facing issue, please run the command prompt in administrator mode to give full permission -
1. Start command prompt terminal with administrator rights and run the same maven command. It worked as expected and build is success
2. To start command prompt with admin rights, right click on cmd and click on run as administrator
Hope this helps !
Thanks
Views
Likes
Replies
Views
Likes
Replies