how to upgrade our maven project to the latest archetype? (should we even do it?) | Community
Skip to main content
jayv25585659
Level 8
May 29, 2022
Solved

how to upgrade our maven project to the latest archetype? (should we even do it?)

  • May 29, 2022
  • 1 reply
  • 771 views

some info:

- we're already on 6.5 and necessary plug-ins/libraries have been updated to the relevant versions

 

I recently created a new maven project and noticed that there are new folders/changes to the base/empty AEM project. Is is advisable to migrate to this "new" project structure?

 

I'm looking the folders now and the biggest concern I have is the dispatcher folder. I'm assuming this controls are HTTPD settings. What happens if don't configure this? would it overwrite our customizations for the HTTPD?

 

Thank you!

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

Hi @jayv25585659 

Maven archetype is only required whenever you are creating the project from scratch. If you are already migrated to the AEM version 6.5, you need to upgrade the uber-jar, maven dependencies, Jdk-11 ,OSGI and 6.5 service package etc.(Which you already did).

Now to answer your question, Like you also created new maven project structure and want to adapt to it then you need to copy paste the code from old structure to new structure, but this is not recommended, since it is cumbersome and required efforts.

While creating latest maven archetype project structure you can also omit dispatcher configuration by setting propertyincludeDispatcherConfig to n (default is y) - "Includes a dispatcher configuration either for cloud or for AMS/on-premise, depending of the value of aemVersion (can be y or n)."

Reference: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html?lang=en


Hope that helps!

Regards,
Santosh

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
May 29, 2022

Hi @jayv25585659 

Maven archetype is only required whenever you are creating the project from scratch. If you are already migrated to the AEM version 6.5, you need to upgrade the uber-jar, maven dependencies, Jdk-11 ,OSGI and 6.5 service package etc.(Which you already did).

Now to answer your question, Like you also created new maven project structure and want to adapt to it then you need to copy paste the code from old structure to new structure, but this is not recommended, since it is cumbersome and required efforts.

While creating latest maven archetype project structure you can also omit dispatcher configuration by setting propertyincludeDispatcherConfig to n (default is y) - "Includes a dispatcher configuration either for cloud or for AMS/on-premise, depending of the value of aemVersion (can be y or n)."

Reference: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html?lang=en


Hope that helps!

Regards,
Santosh

Santosh Sai