Reputation: 53
Is there a way where I can specify the order the car files inside carbonapps folder will be deployed?
I have scenario where I have a car file depending on other car.
In this case, I have car that is using the file connector, so the car that contains the file connector must be deployed first.
As I can not guarantee that, we are having some deployment issues.
Is this possible to specify an order for the deployment?
Thanks,
Upvotes: 0
Views: 604
Reputation: 549
At CApp deployment, the order of artifact types is defined as in https://github.com/wso2/maven-tools/blob/master/org.wso2.maven.capp/src/main/java/org/wso2/maven/capp/utils/CAppArtifactPriorityMapping.java#L30.
And artifacts for each type is deployed in the alphabetical order. By default, dependencies are defined in the artifacts.xml file following the alphabetical order at the CApp creation. You can change the order of artifacts deployment by manually editing the dependencies order at artifacts.xml as preferred.
Upvotes: 1
Reputation: 148
The artifacts will be deployed in the below order. The only way is, you can separate the artifacts into different Composite Applications (move all dependency artifacts into one CAPP) and deploy them in the order as you prefer. But, you have to deploy the dependency CAPP (which contains the dependency artifacts) first.
Thank you
Upvotes: 0