You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is that both execution generates RestApplication.java and RestResourceRoot.java (which are not useful to my project...) , and having multiple of those give me the following error at build :
java.lang.RuntimeException:
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.resteasy.reactive.common.deployment.ResteasyReactiveCommonProcessor#handleApplication threw an exception: java.lang.RuntimeException: More than one Application class: [path1.RestApplication, path2.RestApplication]
I wasn't aware of this feature and it suits perfectly what I needed
Note that I also needed to add the <ignoreFileOverride>.openapi-generator-ignore</ignoreFileOverride> in the maven plugin configuration to make it works on top of the .openapi-generator-ignore file with the following
**/RestApplication.java
**/RestResourceRoot.java
Is your feature request related to a problem? Please describe.
I'm working on a project where i need to generate several swagger specs through different config :
Problem is that both execution generates RestApplication.java and RestResourceRoot.java (which are not useful to my project...) , and having multiple of those give me the following error at build :
java.lang.RuntimeException:
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.resteasy.reactive.common.deployment.ResteasyReactiveCommonProcessor#handleApplication threw an exception: java.lang.RuntimeException: More than one Application class: [path1.RestApplication, path2.RestApplication]
Problem exists since #17645
Describe the solution you'd like
Please introduce an new configOption (true by default to remain backward compatible) to enable generation of those files or not here :
https://github.com/OpenAPITools/openapi-generator/blame/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java#L178
https://github.com/OpenAPITools/openapi-generator/blame/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java#L187
Describe alternatives you've considered
Currently, as work-around, i have to delete the generated files after it has been generated
Example for people having the same issue :
The text was updated successfully, but these errors were encountered: