Open HarshSama opened 7 years ago
I got the same issue, just download this example, change version of swagger plugin to newest one (3.1.6-SNAPSHOT) but after run mvn compile, the json is just:
{ "swagger" : "2.0", "info" : { "description" : "This is a sample for swagger-maven-plugin", "version" : "v1", "title" : "Swagger Maven Plugin Sample", "termsOfService" : "http://www.github.com/kongchen/swagger-maven-plugin", "contact" : { "name" : "Kong Chen", "url" : "http://kongch.com", "email" : "kongchen@gmail.com" }, "license" : { "name" : "Apache 2.0", "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "host" : "petstore.swagger.wordnik.com", "basePath" : "/api", "schemes" : [ "http", "https" ] }
Does anyone help?
Hi @HarshSama You may need to try this #9
Hi All, Need help in generating swagger.json from swagger maven plugin.My POM file looks like:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Using :mvn compile to compile source. It would be appreciated if anyone help it out.