Created
June 14, 2019 19:12
-
-
Save rmichela/c988a7c0ca7e4800ed32ea40e9802e05 to your computer and use it in GitHub Desktop.
openapi-generator-maven-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.openapitools</groupId> | |
<artifactId>openapi-generator-maven-plugin</artifactId> | |
<version>4.0.0</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>generate</goal> | |
</goals> | |
<configuration> | |
<inputSpec>${project.basedir}/src/main/swagger/api.yaml</inputSpec> | |
<generatorName>spring</generatorName> | |
<configOptions> | |
<!-- See: https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/spring.md --> | |
<library>spring-mvc</library> | |
<sourceFolder>src/gen/java/main</sourceFolder> | |
<java8>true</java8> | |
<dateLibrary>java8</dateLibrary> | |
</configOptions> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment