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

Cloud Manager Build Issue - AEM as Cloud Service

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

224 likes

Total Posts

283 posts

Correct Reply

65 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

224 likes

Total Posts

283 posts

Correct Reply

65 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

29-06-2020

Hello Team,

 

I have a AEM project built using Archetype 23 and i have defined multiple content packages(ui.apps). i have same OSGI configurations defined in them. As per the earlier versions of AEM, OSGI will pickup based on order of runmodes. But with AEM as cloud, Build pipeline failing in Cloud Manager itself stating that conflict of OSGI configurations.

 

Where should i set this "'mergeConfigurations' flag to 'true'"?

 

Error:-

Configuration 'org.apache.sling.commons.log.LogManager.factory.config~test' already defined in Feature Model 'my_packages:aem-program-project.all:slingosgifeature:0.0.1-SNAPSHOT', set the 'mergeConfigurations' flag to 'true' if you want to merge multiple configurations with same PID

 

@kautuk_sahni @Arun_Patidar @kaushal_mall 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 3
Employee
kaushal_mall
Employee

Likes

15 likes

Total Posts

39 posts

Correct Reply

12 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 10
View profile

Avatar
Give Back 3
Employee
kaushal_mall
Employee

Likes

15 likes

Total Posts

39 posts

Correct Reply

12 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 10
View profile
kaushal_mall
Employee

29-06-2020

There are a couple of issues going on here. 

  • There is no “test” runmode in Cloud Service. Looks you have configurations under that runmode. Please read the Cloud Service documentation on which runmodes are supported 
  • This error is shown when you have multiple configs with the exact same PID in your code base and Cloud Service cannot determine which config to apply. Unfortunately, the error is a little misleading because the mergeConfiguration flag cannot be set as it says. 

If you remove your duplicate configs, it should work as expected. 

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Employee
anubhas68994354
Employee

Likes

15 likes

Total Posts

17 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 3
View profile

Avatar
Boost 5
Employee
anubhas68994354
Employee

Likes

15 likes

Total Posts

17 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 3
View profile
anubhas68994354
Employee

29-06-2020

Hello ,

 

The build/deploy should work fine if we have only one config per PID across all the runmode configs. Please check by removing duplicate configs.

 

Regards,

Anubha