Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Ignite 1
Level 1
maheshl1806
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile

Avatar
Ignite 1
Level 1
maheshl1806
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile
maheshl1806
Level 1

21-08-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

03-09-2019

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

Answers (5)

Answers (5)

Avatar

Avatar
Give Back 5
MVP
Umesh_Sondhi
MVP

Likes

56 likes

Total Posts

64 posts

Correct Reply

28 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 50
Boost 5
View profile

Avatar
Give Back 5
MVP
Umesh_Sondhi
MVP

Likes

56 likes

Total Posts

64 posts

Correct Reply

28 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 50
Boost 5
View profile
Umesh_Sondhi
MVP

02-09-2019

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

Avatar

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
joeb21688728
Level 4

21-08-2019

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

Avatar

Avatar
Ignite 1
Level 1
maheshl1806
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile

Avatar
Ignite 1
Level 1
maheshl1806
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile
maheshl1806
Level 1

21-08-2019

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

Avatar

Avatar
Level 1
aem65lt05550772
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
aem65lt05550772
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
aem65lt05550772
Level 1

21-08-2019

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

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

21-08-2019

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.