swaggerdoc-plugin is a JavaDoc plugin to generate a Swagger resource listing.
- Maven 3.0 or later
Add the following plugin configuration to the plugins block in the POM:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<doclet>org.eu.fuzzy.swagger.javadoc.SwaggerDoclet</doclet>
<docletArtifact>
<groupId>org.eu.fuzzy</groupId>
<artifactId>swaggerdoc-plugin</artifactId>
<version>0.1.0</version>
</docletArtifact>
<useStandardDocletOptions>true</useStandardDocletOptions>
<doctitle>Test API</doctitle>
<additionalparam>
--api-version 1.0.0
--api-description "${project.description}"
--api-tos MIT
--api-contact-name "Yevhen Vatulin"
--api-contact-url "http://vatulin.me"
--api-contact-email yevhen@vatulin.me
--api-license MIT
--api-license-url "https://spdx.org/licenses/MIT.html"
</additionalparam>
</configuration>
</plugin>
TODO
This project is licensed under the MIT License.