Dependency Error | Community
Skip to main content
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 SantoshSai

@shoib_i Well, that is expected! My analysis as below,

  • As per above command for generating project - You missed adding one property ie. aemVersion - per documentation here: https://github.com/adobe/aem-project-archetype by default it is taken as cloud
  •  Please run below command as per your AEM instance version 6.5.14.

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

This should solve your problem.

1 reply

SantoshSai
Community Advisor
Community Advisor
November 25, 2022

Hi @shoib_i ,

Could you please tell us what is the exact version of AEM you are using and what command you have been used to generate project?

Also, have you installed latest Service Pack?

Regards,

Santosh

Santosh Sai
shoib_IAuthor
Level 2
November 25, 2022

@santoshsai I have used below command to generate project 

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

as archetype 39 supports AEM 6.5.7.0+ I'm using AEM 6.5.0 on top of it yes Installed Service Pack 6.5.14 - but still the same issue.

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
November 25, 2022

@shoib_i Well, that is expected! My analysis as below,

  • As per above command for generating project - You missed adding one property ie. aemVersion - per documentation here: https://github.com/adobe/aem-project-archetype by default it is taken as cloud
  •  Please run below command as per your AEM instance version 6.5.14.

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

This should solve your problem.

Santosh Sai