Skip to content

not generated parent tag on final generated pom.xml (only works with generator spring) #9078

Open
@danipenaperez

Description

@danipenaperez
Description

Pom parent tag is not created on jax-rs/jaxrs-resteasy... on generated pom.xml , but works using generator = spring

openapi-generator version

last version using docker image run

OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate  \
                        -i /local/$OPEN_APIFILE_NAME \
                        -g jaxrs-spec  \
                        --api-package myapi.resource \
                        --model-package myapi.dto \
                        -o /local/generated-apis-stubs \
                        -c /local/config.yaml 

The config.yaml looks like this

additionalProperties:
  artifactId: myamazingapi
  groupId: com.me
  serializableModel: "true"
  dateLibrary: java8
  interfaceOnly: true
  parentArtifactId: myparentArfitactId
  parentGroupId: com.me
  parentVersion: 1.0.0

On generated pom.xml there is no parent tag

But with generator spring works:

docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate  \
                        -i /local/openapi-spec.yaml \
                        -g spring  \
                        --api-package myapi.resource \
                        --model-package myapi.dto \
                        -o /local/generated-apis-stubs \
                        -c /local/config.yaml 

you can see the parent tag generated inside.

Related issues/PRs
Suggest a fix/enhancement

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