Skip to content

[BUG][JAVA] Unable to compile newly added generator code #4909

@godrose

Description

@godrose

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
Description
openapi-generator version

Version: 4.2.3

Steps to repro

Follow the steps outlined at https://openapi-generator.tech/docs/customization.html

Run 'Use the new generator' step with the following command
java -cp out/generators/my-codegen/target/my-codegen-openapi-generator-1.0.0.jar:modules/openapi-generator-cli/target/openapi-generator-cli.jar org.openapitools.codegen.OpenAPIGenerator

Expected: It works
Actual: It doesn't. The error is the following:
Error: Could not find or load main class org.openapitools.codegen.OpenAPIGenerator

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions