Skip to content

Instantly share code, notes, and snippets.

@rmichela
Created June 14, 2019 19:12
Show Gist options
  • Save rmichela/c988a7c0ca7e4800ed32ea40e9802e05 to your computer and use it in GitHub Desktop.
Save rmichela/c988a7c0ca7e4800ed32ea40e9802e05 to your computer and use it in GitHub Desktop.
openapi-generator-maven-plugin
<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