on 02-11-2022 11:52 AM
Tutorials: https://developers.sap.com/tutorials/btp-app-launchpad-service.html
--------------------------
On step 13, MTA re-deployment - I am receiving an error that my Resource object is null. Any ideas on how to troubleshoot?
Error resolving merged descriptor properties and parameters: Cannot invoke "org.cloudfoundry.multiapps.mta.model.Resource.getProperties()" because "resource" is null
Process failed.
Ok! Solution found, this is an issue I havent seen before. Here are the steps to solve it;
1. mta.yaml
Update the supported-platforms: [] to supported-platforms: [CF] inside the securitychecks module
2. Update securitychecks_ui_deployer -> package.json to the following so that it works with the latest nodejs versions, might not be applicable to you
{
"name": "approuterUIDeployer",
"dependencies": {
"@sap/html5-app-deployer": "4.1.0"
},
"scripts": {
"start": "node node_modules/@sap/html5-app-deployer/index.js"
}
}
I’ve also created a package.json that you can run cli commands. You can drop this into the root of your project folder;
{
"name": "securitychecks-project",
"version": "0.0.1",
"description": "Build and deployment scripts",
"scripts": {
"clean": "rimraf resources mta_archives mta-op* Makefile_*",
"build": "rimraf resources mta_archives && mbt build --mtar archive",
"deploy": "cf deploy mta_archives/archive.mtar --retries 1",
"undeploy": "cf undeploy securitychecks --delete-services --delete-service-keys"
},
"devDependencies": {
"mbt": "^1.0.15",
"rimraf": "3.0.0"
}
}
So you can now run the following commands;
npm i
npm run build
npm run deploy
npm run undeploy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.