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
swagger-maven-plugin-jakarta is always using the resourceClasses from the first execution #4647
Comments
I found the "problem" :) It has nothing todo with the maven plugin itself and how it read/merge the config. This is all fine. Its all about the "context-id" :-) (Singletons are ugly) This line in io.swagger.v3.oas.integration.GenericOpenApiContextBuilder is causing the trouble:
If no context-id is given then the maven plugin is using ${project.artifactId} as default. So also in case multiple executions with different settings are expected which results at end in using the same open-api-context again and again. So its not really a bug or something ... its more a missing hint in the documentation. |
I define multiple executions for swagger-maven-plugin-jakarta and it seems that the resourceClasses from the first execution is re-used in all following executions.
All the generated outputs have the same content :-)
May there is a wrong data-handling in the plugin, i,e static variable or something?!
The text was updated successfully, but these errors were encountered: