Skip to content

Jersey 2 generator not working #2997

@pubudu91

Description

@pubudu91
Description

I tried to generate a Jersey 2 server stub using Codegen, by passing a JSON config file. In that config file, I set the library to be Jersey 2. However, when checking the generated code, I found that it has used Jersey version 1.18.1. The config file seems to be processed correctly, since other properties I had set in it were configured correctly in the pom file (such as groupId, artifactId etc).

Swagger-codegen version

I built Codegen from the master branch.

Command line used for generation

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i <path-to-spec>/docker-registry.yaml -c <path-to-config-file>/swagger-codegen-config.json -o samples/server/jersey2-server -l jaxrs

Related issues

Issue #2488

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions