Skip to content
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

Multiple executions of openapi-generator-maven-plugin with skipIfSpecIsUnchanged #7820

Closed
zshlomyz opened this issue Oct 27, 2020 · 1 comment

Comments

@zshlomyz
Copy link

Is your feature request related to a problem? Please describe.

I am using the openapi-generator-maven-plugin to generate the source code twice (2 executions):

  1. For the backend code - java - generatorName = spring
  2. For the client code - generator name = typescript-redux-query

I also use the skipIfSpecIsUnchanged to skip the compilation if not needed.

When the parameter skipIfSpecIsUnchanged is true, the first execution (generating the java code) is working while the second (the client code) is skipped with the message - Code generation is skipped because input was unchanged.

Describe the solution you'd like

Enable multiple executions of the plugin

Thanks!

@wing328
Copy link
Member

wing328 commented Apr 5, 2021

@zshlomyz the fix by @Zomzog has been merged into master. Please pull the latest master or use the SNAPSHOT version to give it a try.

@wing328 wing328 closed this as completed Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants