How to include multiple publisher hosts in maven scripts??? | Community
Skip to main content
GK-007
New Participant
October 16, 2015
Solved

How to include multiple publisher hosts in maven scripts???

  • October 16, 2015
  • 2 replies
  • 869 views

Hi All,

For our QA environment our author is configured with 2 publisher instances.

I have to push both bundle and packages onto both the publishers.

How i need to include these profiles in maven build script?

Thanks,

Kishore

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 ogill

Hi Kishore,

using CI is the recommended way to deploy to each environment, it's an industry best practice, nothing to do with AEM.

However if you are not using CI, then you can have separate profiles for each publish instance or you can write a shell script that can upload to both publish instances using "curl" commands.

Another way is to activate the package from package manager on the author which would deploy the packages via any configured replication agents.

Regards,

Opkar

2 replies

Kunal_Gaba_
New Participant
October 16, 2015
You should be using a CI tools like Jenkins/GO etc for deploying built artifacts to multiple instances in multiple environments. Maven should only be used for build, unit/integration  tests and deploying on local developer environment.
ogillAccepted solution
Employee
October 16, 2015

Hi Kishore,

using CI is the recommended way to deploy to each environment, it's an industry best practice, nothing to do with AEM.

However if you are not using CI, then you can have separate profiles for each publish instance or you can write a shell script that can upload to both publish instances using "curl" commands.

Another way is to activate the package from package manager on the author which would deploy the packages via any configured replication agents.

Regards,

Opkar