I have a question regarding WSO2 EI Deployment. Here is the scenario, I had create 4 API for my project.
For the first time deployment. I generated 1 CApp file consist of 4 API and other artifact such as endpoint, resources and java project
CappFile.1.0.0.car
-- FirstApi
-- SecondApi
-- ThirdApi
-- FourthApi
It was running perfectly and everything works fine. In the next weeks for example. the SecondApi need to be enhanced a bit in the flow. In the Capp pom.xml I only choose to deploy the SecondApi
CappFile.1.0.0.car
-- SecondApi
When I deployed the CappFile.1.0.0.car this time, it will override/delete the FirstApi, ThirdApi and FourthApi in the system.
I though need to change the name/versioning of the .car file. My second approach was
CappFile.1.0.1.car
-- SecondApi
When I deployed this time, the console prompt me an error that Duplicate resource definition by the name: SecondApi
.
How do you guys handle this kind of situation ? Or do I need to include everything in my .car file every time I need to perform a deployment even though others API does not have any changes ?
UPDATE
There is an option to Package a single artifact into deployable archives. Link. I manage to package the SecondApi into deployable archives which is SecondApi.xml.
But where do I need to upload the XML file ? They never mentioned anything in the documentation.
Please help !