Expand my Community achievements bar.

SOLVED

Create new AEM project with latest angular

Avatar

Level 1

Trying to create a new angular AEM project, with latest angular versions (14 +)

 

but below code always generating me with angular 9. 

 

``` 

mvn -B archetype:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D aemVersion=6.5.15 \
-D archetypeVersion=47 \
-D appTitle="WKND SPA Angular" \
-D appId="wknd-spa-angular" \
-D artifactId="aem-guides-wknd-spa.angular" \
-D groupId="com.adobe.aem.guides.wkndspa.angular" \
-D frontendModule="angular" \
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @naresh217 

 

This git repo is what you get when you run your Maven archtype command. If you check https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/ui.frontend.angular/p... The version here is 9.1.12

 

So with the command I do not think you will be able to upgrade to the latest version. You will have to do it manually. 

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @naresh217 

 

To the best of my knowledge the Maven archtype gives you ht e most compatible version of angular. 

You can find the defaults of the latest maven archetype respective the Angular setup, for example https://github.com/adobe/aem-project-archetype/tree/develop/src/main/archetype/ui.frontend.angular

 

Although you can try upgrading your angular manually . 

Please Refer to this Doc: https://angular.io/guide/update-to-version-14

 

Thanks

Avatar

Level 1

while trying to upgrade it is giving lot of dependency issues. 

So thought of creating a new project with Angular 14+. 

 

So from your comment we can create with latest version of angular ? 

 

Avatar

Correct answer by
Community Advisor

Hi @naresh217 

 

This git repo is what you get when you run your Maven archtype command. If you check https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/ui.frontend.angular/p... The version here is 9.1.12

 

So with the command I do not think you will be able to upgrade to the latest version. You will have to do it manually. 

Avatar

Administrator

@naresh217 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni