SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
136 stars 55 forks source link

Unable to build Workflow Management MTAR #1104

Open pedromiguelfernandes opened 7 months ago

pedromiguelfernandes commented 7 months ago

In Business Application Studio, while building the Workflow Management MTA project with a Task UI5 view, using the latest Build Tool (1.2.27) the system ends with the following error:

⚠️ Process Failed With Error

Error Message: Invalid ui5.yaml configuration for project @sap/ux-ui5-tooling

Unsupported "specVersion"

/home/user/projects/xxxxxxxxx/workflow-ui-module/node_modules/@sap/ux-ui5-tooling/ui5.yaml:2

1: # https://sap.github.io/ui5-tooling/pages/extensibility/CustomServerMiddleware/ 2: specVersion: "3.0" ^ Your UI5 CLI installation might be outdated. Supported specification versions: "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0", "1.1", "1.0", "0.1" For details see: https://sap.github.io/ui5-tooling/pages/Configuration/#specification-versions

For details, execute the same command again with an additional '--verbose' parameter [2023-11-30 15:40:46] ERROR could not build the "xxxxxxxxx" module: could not execute the "npm run build:cf" command: exit status 1 make: *** [Makefile_20231130154040.mta:37: xxxxxxxx] Error 1 [2023-11-30 15:40:46] ERROR could not build the MTA project: could not execute the "make -f Makefile_20231130154040.mta p=cf mtar= strict=true mode=" command: exit status 2 Error: could not build the MTA project: could not execute the "make -f Makefile_20231130154040.mta p=cf mtar= strict=true mode=" command: exit status 2

If in the file mentioned in the logs, I change the values from specVersion: "3.0" to "2.5" for example, the build is successful

Additional information:

Steps to Reproduce:

  1. Create a new Workflow Management MTA
  2. Through BAS Wizard -> Add Workflow Module
  3. Through BAS Wizard -> Add Approuter
  4. Through BAS Wizard -> Add Task UI
  5. Build project
yutaoj commented 7 months ago

Hi pedromiguelfernandes,

In reproduce steps, which 'Dev Space' should be selected to create a new Workflow Management MTA on SAP Business App Studio ?

Thanks Yutao

pedromiguelfernandes commented 7 months ago

Hi Yutao,

I had this issue in two different landscapes, different subaccounts and different spaces. At this point, I don't know if the problem is in the generator, the build tool or just a simple case of PEBCAK.

Thank you for the support, Pedro