OpenAPITools / OpenAPITools/openapi-generator
jaxrs-cxf-client uses wrong sourceFolder
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
When using the jaxrs-cxf-client with the mavenplugin (version 5.0.0) the generator creates the java files into target/generated-sources/openapi/src/gen/java, as defined by:
https://github.com/OpenAPITools/openapi-generator/blob/e26f44072929e7392c04ffe4158e4d9bff3658da/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java#L57
However, the documentation for parameter "sourceFolder" states, the output will be put in target/generated-sources/openapi/src/main/java.
Furthermore, only target/generated-sources/openapi/src/gen/java is not defined as sourcepath, so it is not picked up by the maven-compiler-plugin and compiled, resulting in errors.
I would suggest changing the code to match the documentation and also to get the generated java files compiled without further configuration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in JavaCXFClientCodegen.java at the sourceFolder definition linked in the issue, then compare it with the jaxrs-cxf generator documentation. Align the generated path with the documented sourceFolder and verify through the Maven plugin that the generated Java sources are discovered and compiled without extra source-path configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100