コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

[Maven]Process to deploy code onto various environments

Avatar

Level 9

Hi All,

We are various and want to deploy code onto different environments like DEV,INTEGRATION,TEST and PROD.And we are using Maven to build all custom code.

How can we maintain configuration specific and author/publisher details specific to environment?

Please help  me in this regard.

Thanks,

Kishore

1 受け入れられたソリューション

Avatar

正解者
Level 2

Kishore,

the easiest way is to explore the idea that was given in previous answer - run modes. This allows you basically to have one single package with configs and deploy it to all your environments. Basically you create folders with osgi config with proper names. Those names are then picked up by AEM, and it selectively applies only configs that belong to this environment (based on runmode). Please explore information given here:

https://docs.adobe.com/docs/en/cq/5-6-1/deploying/configure_runmodes.html

It covers both how to assign runmodes to your instance, as well as has a link explaining how to create osgi configs based on runmodes.

Your second option is to have seperate config packages for each environment and then have seperate process (CI job?) for each environment. This approach is not recommended though as it's much harder to maintain in longer term.

元の投稿で解決策を見る

3 返信

Avatar

Community Advisor

I guess you are looking for deploying the bundles to different environment via Maven

Refer the following URL - http://www.albinsblog.com/2015/06/deploying-bundlespackages-to-different-env-maven-adobecq5-adobeaem...

Avatar

Level 10

Please refer [1] to create different config for each environment

[1] http://adobeaemclub.com/osgi-configuration-management-aem/

Avatar

正解者
Level 2

Kishore,

the easiest way is to explore the idea that was given in previous answer - run modes. This allows you basically to have one single package with configs and deploy it to all your environments. Basically you create folders with osgi config with proper names. Those names are then picked up by AEM, and it selectively applies only configs that belong to this environment (based on runmode). Please explore information given here:

https://docs.adobe.com/docs/en/cq/5-6-1/deploying/configure_runmodes.html

It covers both how to assign runmodes to your instance, as well as has a link explaining how to create osgi configs based on runmodes.

Your second option is to have seperate config packages for each environment and then have seperate process (CI job?) for each environment. This approach is not recommended though as it's much harder to maintain in longer term.