Skip to content

CAR file deployment fails with latest plugin version (vscode-car-plugin) #180

@mrkhedri

Description

@mrkhedri

Hi team,

We are currently using the WSO2 Micro Integrator with the VS Code extension.

We encountered an issue when deploying a CAR file generated from a project created using the VS Code extension with the latest plugin version. After deploying, we received the following error in the Micro Integrator logs:

[2025-04-15 10:38:06,002] ERROR {ServiceCatalogUtils} - Error occurred while processing the metadata files java.io.FileNotFoundException: /home/wso2carbon/wso2mi-4.3.0/tmp/carbonapps/-1234/1744713485999Token_1.0.0.car/metadata/TokenDS_data_service_swagger_1.0.0/TokenDS_data_service_swagger-1.0.0.yaml (No such file or directory)

What we did:

  1. Created a new data service project using the VS Code extension.
  2. Modified it to match our data service configuration.
  3. Built the project and deployed the CAR file to MI.
  4. The above error occurred, indicating a missing Swagger YAML metadata file.

Troubleshooting:
We compared this to a sample data service project inside the extention, which worked fine when built and deployed. On checking the pom.xml, we noticed that the sample project uses the following plugin version:

<car.plugin.version>5.2.97</car.plugin.version>

We then changed our project to also use this version (5.2.97) and rebuilt the CAR file — the error was resolved, and deployment succeeded without issues.

Issue Summary:
The latest car plugin version (used by default in newly created projects via the extension) seems to generate an incomplete CAR file that misses the Swagger metadata YAML file for data services.

Downgrading the <car.plugin.version> to 5.2.97 fixes the issue.

Request:
Could you please investigate and fix this issue in the latest version of the plugin?

Let me know if any additional logs or project files are needed.

Thanks for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions