While creating maven project i am getting this kind of error | Community
Skip to main content
Level 3
July 31, 2023
Solved

While creating maven project i am getting this kind of error

  • July 31, 2023
  • 3 replies
  • 1823 views

 

The command which i used is :
mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26 -D appTitle="My Project" -D appId="aempanda" -D groupId="com.aempanda.aem" -D artifactId="myproject-aem-panda" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.17" -D includeDispatcherConfig=n -D includeExamples=n -DfrontendModule=none

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 aanchal-sikka

@monish_gavali 

Please try with command

 

mvn clean install -PautoInstallPackage -Padobe-public

 

3 replies

Sady_Rifat
Community Advisor
Community Advisor
July 31, 2023

Hello @monish_gavali ,

Maybe you mismatched the archetype version with the AEM version. Check this compatibility chart: https://github.com/adobe/aem-project-archetype/blob/develop/VERSIONS.md 
If any confusion mention your command and other environmental details.
A sample command for you, Change the version according to your AEM setup.

 

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=43 \ -D appTitle="AEM Demo" \ -D appId="aem-demo \ -D groupId="com.aem.demo" \ -D artifactId="aem-demo" \ -D package="com.aem.demo" \ -D version="0.0.1-SNAPSHOT" \ -D aemVersion="6.5.17"

 

UPDATE:

So the problem is in your archetype version. You are using AEM version 6.5.17 & archetype version 26.
According to the version compatibility, the minimum version will support 28.
But I will suggest using the latest one 43.

Level 3
July 31, 2023

I am using this AEM version

 

Sady_Rifat
Community Advisor
Community Advisor
July 31, 2023

Please follow my given command. Hope it will be solved. The only problem was in your archetype version.

aanchal-sikka
Community Advisor
Community Advisor
July 31, 2023

Hello @monish_gavali 

 

You are using a very old archtype. Latest is 43. https://github.com/adobe/aem-project-archetype

 

The documentation suggests command and the params as well. The documentation suggests aemVersion=6.5.7 for On-premise

 

Please cross-check, if its an issue on using 6.5.17

Aanchal Sikka
Level 3
July 31, 2023

Now building this project i am getting the another error

 

 

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
July 31, 2023

@monish_gavali 

Please try with command

 

mvn clean install -PautoInstallPackage -Padobe-public

 

Aanchal Sikka
Level 2
July 31, 2023

Hi @monish_gavali 

I understand how frustrating it can be to encounter technical difficulties. I went through a similar problem just yesterday.

The latest versions of Java (11.0.19) and mvn (3.9.3) with the specified command below [as @sady_rifat  mentioned as well]

 

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=43 \ -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.17"

 

I trust that this will help you resolve the issue as well.

Level 3
July 31, 2023

yes it got resolved guys, thanks all