-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Description
Is your feature request related to a problem? Please describe.
post processing requires an environment variable to be set. Using maven it's not (nor considered safe) possible to set an environment as part of the build. Instead you must pass it to the build tool. That makes that setting not part of the build description and becomes a source of error or would require validation when starting the build. Moreover it would not be considered serious.
Describe the solution you'd like
make it a command line argument .... and make it possible to set that argument from the openapi-generator-maven-plugin. Unsure if the maven plugin uses command line or uses the generator classes directly.
Describe alternatives you've considered
I used maven exec plugin to execute manual post process in maven's process-sources phase. Sadly many common plugins fork builds and runs the generate-sources phase (ie javadoc, source, etc ) WO calling process-sources. Thus leaving sources unprocessed. There are elaborate maven tweaks around this but I feel I'm leaving convention.
Additional context
Using the maven plugin in springdoc based project. Most up to date versions as of writing.