-
Notifications
You must be signed in to change notification settings - Fork 46
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
Running plugin returns the error "Scanner SubTypesScanner was not configured" #96
Comments
I'm getting similar issue with the about the same configuration |
FWIW I wound up getting openapi to work by not using the plugin, switching to tomee microprofile and including it:
From there, the /openapi endpoint sends back a yaml file, and swagger ui works once I set that address for it. |
I’ll tale a look as soon as possible. Sounds like some dependencies needs
updating. The purpose of the plug-in is a compile time generation of the
OpenAPI specification. If you want to fetch it dynamically at runtime the
plug-in won’t do you much good. It is pretty much just a wrapper around the
Swagger library to trigger it at build time from Maven.
|
Same problem here, the plugin is not usable for me at the moment. |
Same here: <plugin>
<groupId>io.openapitools.swagger</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>2.1.6</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2</artifactId>
<version>2.1.13</version>
</dependency>
</dependencies>
</plugin> Stacktrace is:
|
I had this exact issue with v2.1.6 of the plugin and resolved it by dropping down to v2.1.5. |
I encountered the same issue here. This is a known limitation of the With that new version of the plugin, the Swagger generation works like a charm. |
Hello, I'm trying to set up automatic register of resources with this plugin, but having some difficulty getting it to work with Tomcat. When running mvn verify I'm getting the cryptic error "Scanner SubTypesScanner was not configured". It sounds like something is exploding when trying to use reflection.
I am currently trying with version 2.1.6 of the plugin. For version 1 of the plugin and swagger, the plugin ran properly but it outputted a swagger.json that was nearly empty, so I'm trying v2. I'm using JDK 17, here are the important parts of my pom and my classes, am I doing something majorly wrong?
A couple other questions
* is the swagger annotations dependency required for this to work?
* It used to be with BeanConfig I could tell it to automatically scan for resources, is there a way I need to do that for SwaggerConfiguration?
My resource
Application config
The text was updated successfully, but these errors were encountered: