Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Dependency Error

Avatar

Level 2

Hi All,

I'm trying to build & deploy AEM project archetype 39 according to here https://github.com/adobe/aem-project-archetype - project deployed successfully on local instance but when I check My Site bundle is in Installed state and 2 errors as below

Screen Shot 2022-11-25 at 10.36.07 AM.png

 What might be the wrong here?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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
    Screen Shot 2022-11-25 at 11.17.24 AM.png
  •  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.

View solution in original post

4 Replies

Avatar

Community Advisor

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

Avatar

Level 2

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

Avatar

Correct answer by
Community Advisor

@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
    Screen Shot 2022-11-25 at 11.17.24 AM.png
  •  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.