Open wedsa5 opened 6 years ago
I looked into this a bit:
<templatePath>
is set, the AbstractDocumentSource.toDocuments() method is not called. See: https://github.com/kongchen/swagger-maven-plugin/blob/master/src/main/java/com/github/kongchen/swagger/docgen/mavenplugin/ApiDocumentMojo.java#L107Could you please look at the swagger-maven-plugin in your effective pom, and see if there are any oious mistakes
During ApiDocumentMojo.execute(), AbstractDocumentSource.toDocuments() gets called even when the is not set.
This causes a java.io.FileNotFoundException since it tries to look for src/main/resources/swaggertemplates/strapdown.html.hbs which does not exist.
It should be able to generate the swagger.json without using a template to generate an html document.
pom.xml plugin definition:
As far as I understand, the templatePath and outputDirectory are optional parameters.