OpenAPITools / OpenAPITools/openapi-generator

[JAVA] Bug generating JAXRS-CXF-Client with Docker

Open
#7,796 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

When generating a pom.xml with codegen, it is missing the parent although all attributes are provided

openapi-generator version

Docker image: openapitools/openapi-generator-cli:v4.3.1

OpenAPI declaration file content or url

The OpenAPI declaration will not be neccesary

parentGroupId: de.dajonny
parentArtifactId: parent
parentVersion: '25'
Command line used for generation

docker run --rm -v $(pwd):/build openapitools/openapi-generator-cli:v4.3.1 generate -c /build/codegen-config.yaml -i /build/v1.yaml -g jaxrs-cxf-client -o /build

Steps to reproduce

When executing this command, a pom.xml is produced together with a api interface plus models.

However, when inspecting the pom.xml, there is no tag inside.

Related issues/PRs

I have not found any related or similar issues

Suggest a fix/enhancement

When providing groupId, artifactId and version of a parent, it should be inserted into the pom.xml

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the v4.3.1 Docker command, the codegen-config.yaml values, and the jaxrs-cxf-client generator. Inspect the generated pom.xml and the generator's JAXRS-CXF client templates; done means the supplied parentGroupId, parentArtifactId, and parentVersion produce a parent tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
api, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.