-
Notifications
You must be signed in to change notification settings - Fork 6k
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-codegen-maven-plugin threadsafe? #6260
Comments
Same request for the new When running maven with parallel execution (-T / --threads), I get the following warning on the
As far as I can tell, everything is working fine. The only issue is this warning report but it would be nice if this could be fixed. |
It is not only a problem of error message. I have a multi module project, with submodules using different config of the plugin. The config of one modules leak into the other one when running in parallel. This break my build (I have different supportingFilesToGenerate and some modules are thus missing some of the required supporting files). |
Confirming it is a real issue. When running maven with threads, generation in parallel causes compilation errors in case multiple module are using this plugin. |
…ism. This naive approach should be replaced in the future and allow parallel runs to achieve faster build times but this change will at least allow users to run maven with threads and other plugins and modules will run in parallel.
…ism. This naive approach should be replaced in the future and allow parallel runs to achieve faster build times but this change will at least allow users to run maven with threads and other plugins and modules will run in parallel. This approach is also suggested by Apache Maven as a workaround: https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3
I found a fork project https://github.com/OpenAPITools/openapi-generator/ which has an |
Fix #6260 on master by preventing parallelism
partial fix implemented in #10329, keeping this ticket open to track full addressing of concurrency in v2 and v3 |
This is a request to make maven plugin thread safe in order to take advantage of maven multi threaded build
Swagger-codegen version
2.2.2
The text was updated successfully, but these errors were encountered: