New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Java generator - maven plugin - withXml maven plugin configuration option is not honored during maven build #3839
Labels
Comments
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I used
generatorName
java with a simple Swagger 3.0 spec file.I noticed that the
withXml
option of the Maven plugin is not used. After issuingmvn clean generate-sources
the sources are not annotated with@Xml*
annotations.This can be verified with
verbose
maven pluging configuration option set totrue
where at the very end of execution I noticed:To get generated model with
@Xml*
annotations, I usedadditionalProperties
.openapi-generator version
Seems to be working with
OpenAPI declaration file content or url
Complete Maven example project: https://github.com/RockyMM/openapi-modelgen-test
Command line used for generation
mvn clean generate-sources
Suggest a fix
After 10 minute search (without cloning openapi-generator) I would start looking in AbstractJavaCodegen class, as the maven plugin class seems to be working correctly. But then again, I am really not not not familiar with the project.
The text was updated successfully, but these errors were encountered: