Hi,
I have a CAP project that contains a set of UI5 apps that have different namespace/service in manifest.json. E.g.
"sap.cloud": {
"public": true,
"service": "ns1" //Or ns2
}
I can't manage to deploy these correctly using mbt and cf deploy.
Attempt #1: I simply add all the apps in mta.yaml. They get all deployed but all are under the same service ns1, even the apps that have ns2 in manifest.json. The problem is that ns2 apps don't work in the launchpad service. The launchpad service tries correctly to load the apps from ns2 service but HTML5 repo returns 404. When I manually adjust URL by replacing ns2 with ns1, the files get returned correctly. Hence HTML5 repo has the apps under namespace ns1 but launchpad expects them with ns2. I think the launchpad is right here.
Attempt #2: in my mta.yaml file, I define two HTML5 deployers. One for ns1 and one for ns2. I can see that mta archive contains apps for each deployer correctly. I can see that both HTML5 deployers got executed during cf deploy. I checked the logs and they look same for both namespaces. The problem is that HTML5 repo does not show ns2 apps at all. They are simply not there.
Hence my questions are: is it possible to deploy UI5 apps with single mta.yaml with different namespaces/services? If yes, what am I missing? If no, what would be a workaround other than changing namespace.
Thanks