Skip to content

[BUG][JAVA] Generator and useJakartaEe still imports package from javax instead of jakarta #17590

@dmbakker

Description

@dmbakker

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

With java Generator, and the option useJakartaEe enabled, the generated pom includes the dependency com.fasterxml.jackson.jakarta.rs:jackson-jaxrs-json-provider and this should have been com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider. The used dependency includes imports from javax instead of jakarta.

openapi-generator version

7.2.0

Suggest a fix

If useJakartaEe option is enabled for the java generator, the dependency in the pom should be com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider instead of com.fasterxml.jackson.jakarta.rs:jackson-jaxrs-json-provider.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions