cancel
Showing results for 
Search instead for 
Did you mean: 

Error When Rebuilding and Re-Deploying the .mtar file

martin_blust
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,602

I am working in the Deploy Your CAP Application on SAP BTP Cloud Foundry Environment | Tutorials for SAP Developers tutorial.

When I go back to the project root folder "cpapp", and start the command "mbt build -t ./", I get the following error message:

[2023-08-29 15:54:43] INFO Cloud MTA Build Tool version 1.2.24

[2023-08-29 15:54:43] INFO generating the "Makefile_20230829155443.mta" file...

Error: could not generate the "Makefile_20230829155443.mta" file: the "C:\tutorial\cpapp\mta.yaml" file is not a valid MTA descriptor: yaml: line 29: did not find expected '-' indicator

I appended the mta,yaml file as "mta.txt" here: mta.txt

I also append the two manifest.json files (from risks and mitigations).

risks-manifest.txt and mitigations-manifest.txt

Please provide the files with the proper content so that the "mbt" build will run successfully.

Best regards,

Martin

View Entire Topic
manjunath_ks1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Martin,

The error is correct, I checked line 29 of mta.txt and there is a requires section without any entries. I am not sure why this is the case in your mta, but you can see here for a fully populated mta: https://github.tools.sap/CPES/CPAppDevelopment-dev/blob/logging/mta.yaml , you could delete the mta file and generate it by following the related steps from step 5 in the tutorial: https://developers.sap.com/tutorials/btp-app-cap-mta-deployment.html#d772a0d9-5609-4c29-9232-ebde957... .

Best regards,
Mahati