How to resolve the dependency issue if we are deploying multiple archetype version of multiple project to AEM? | Community
Skip to main content
srikantap619784
Level 2
February 28, 2024
Solved

How to resolve the dependency issue if we are deploying multiple archetype version of multiple project to AEM?

  • February 28, 2024
  • 3 replies
  • 908 views

We have a scenario where our development server already has multiple project with specific archetype version with below structure.

project 1 ( native/standard) >> archetype -22 (assuming)

project 2 (native)>>  archetype-22

. . .

 so on 

project 6 (native) >> archetype 22 related dependencies only.

core.wcm.component.version is 2.11.0

spa.project.core.version is Not available as these are native.

 

Project 7 ( SPA Editor)  >> archetype 28 (assuming) related dependencies downgraded wherever possible to match with archetype 22 dependencies.

core.wcm.component.version is 2.11.0

core.wcm.component.bundle.version is 2.11.1

spa.project.core.version is 1.1.0 


project 8 ( AEM Remote SPA ) >> Archetype 39 requires 2 of the dependencies to be in higher version compared to others. 
core.wcm.component.version should be 2.23.4

spa.project.core.version should be 1.3.16 

 

We would like to deploy one more project (project 8 ) with AEM remote SPA structure, but AEM remote SPA requires lot of dependencies with upgraded version which might be replaced on our server. This could lead to conflict in our older project dependencies. 

 

Do we have any way to embed the dependencies to our peoject-8 Jar only where multiple version of a bundle will be available in the Server and not conflicting as they are embed in the project core-jar?

AEM Server : 6.5.18 on a cloud manager

Please let me know if my description is not clear, I will modify if required. 

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 srikantap619784

We found a solution: 
We kept the dependency version to same as other project.
We added all the Java files into our bundle which were from newer version causing the issue and the issue is resolved.
We added multiple Java files and one new pom dependency which solved the issue.

3 replies

arunpatidar
Community Advisor
Community Advisor
February 28, 2024

Hi @srikantap619784 
You cannot deploy the multiple version of the same artifacts i.e. core components,

and yes there will be an issue if you deploy the non compatible versions of core component

https://github.com/adobe/aem-core-wcm-components/blob/main/VERSIONS.md

 

however archtype does not matter if the correct dependency versions are used.

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
February 28, 2024

@srikantap619784 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
srikantap619784
srikantap619784AuthorAccepted solution
Level 2
February 29, 2024

We found a solution: 
We kept the dependency version to same as other project.
We added all the Java files into our bundle which were from newer version causing the issue and the issue is resolved.
We added multiple Java files and one new pom dependency which solved the issue.