Open tha2015 opened 6 years ago
Hey @tha2015, @Postremus did you make any progress with this issue? I have the same problem. Tnx
I just excluded the jar with bad Class-Path entry to avoid the issue. The prolem is to find which jars are causing issue
Thank you for the reply! @tha2015 for the future reference, I solved it by adding param:
Which sets reader to the SwaggerReader ( the reader that build swagger.json on runtime). It solved the issue.
(Sample project is attached. Please run run.bat script to see the issue) demo.zip
My project containing a JAR file which has an incorrect Class-Path entry (which is pointing to "/"). As a result, when I building using this plugin, the plugin will never stop because JaxrsReader.scanClasspathForTags() will try to scan whole drive for classes.
Below is the stack trace when debugging the issue:
In the source code, I found the call to new Reflections("") will never stop because of the bad entry in the classpath
Can you improve the logic to avoid scanning the whole classpath? Even if there is no bad entry in classpath, this logic still has bad performance.
Thanks.