Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #9078
Closed
Open
Issue created Mar 25, 2021 by Administrator@rootContributor

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

Created by: 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
Assignee
Assign to
Time tracking