Skip to main content
New Participant
Aug 21, 2019 2:13 PM UTC
Solved

Can multiple versions of acs-aem-commons bundle present under one aem instance

I have two bundles which are currently referencing 3.15.0 version of acs-aem-commons. Ex: bundle X & Y both refers to 3.15.0 version of acs-aem-commons.

For Y bundle, we want to upgrade to 4.2.2 version of acs-aem-commons as we will be retiring X bundle soon.

Is it possible to have both versions of acs-aem-commons bundle in my local aem instance?

I have followed steps mentioned in below given article to use 4.2.2 version of acs-aem-commons but it has affected the bundle X and acs-aem-commons imports are not getting resolved.

Using with Maven

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Sep 3, 2019 9:24 PM UTC

No, this is not possible. You should refactor you code so all bundles have the same dependencies.

6 replies

joerghoh
joerghohAccepted solution
Employee
Sep 3, 2019 9:24 PM UTC

No, this is not possible. You should refactor you code so all bundles have the same dependencies.

Translate
Umesh_Sondhi
Level 4
Sep 2, 2019 1:03 PM UTC

You should only use one version as it doesn't work .Tried and Tested .Not advisable .

Translate
Aug 21, 2019 10:45 PM UTC

Are you looking for LIB conflicts? This is very bad practice.

Translate
New Participant
Aug 21, 2019 9:34 PM UTC

I tried different options but it didn't work. only one version of acs-aem-commons bundle can be present under felix

Translate
New Participant
Aug 21, 2019 4:24 PM UTC

I wouldn't advise this. You should only use one as you see that issues arise.

Translate
Gaurav-Behl
Level 10
Aug 21, 2019 4:16 PM UTC

In theory, you might be able to package one version's bundle file locally within your code bundle and let another global version exist in Felix but  /apps or /etc specific scripts/paths would contain only a set of files shared globally. Hence, you may not achieve desired results.

I don't think that it would work.

Translate