Created
February 14, 2021 10:03
-
-
Save BenjaminKlatt/d45d5acd5e0eabe9f3bf198024bacf01 to your computer and use it in GitHub Desktop.
OpenAPI Generator java client generation maven configuration
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
<!-- REST Client generation --> | |
<plugin> | |
<groupId>org.openapitools</groupId> | |
<artifactId>openapi-generator-maven-plugin</artifactId> | |
<version>5.0.0</version> | |
<executions> | |
<execution> | |
<goals><goal>generate</goal></goals> | |
<configuration> | |
<generatorName>java</generatorName> // (1) | |
<library>native</library> | |
<configOptions> | |
<dateLibrary>java8</dateLibrary> | |
</configOptions> | |
<inputSpec>${project.parent.basedir}/api/target/openapi.json</inputSpec> | |
<apiPackage>de.viadee.api.roundtrip.client.api</apiPackage> | |
<invokerPackage>de.viadee.api.roundtrip.client.api</invokerPackage> | |
<modelPackage>de.viadee.api.roundtrip.client.api.model</modelPackage> | |
<!-- Source generation only --> | |
<generateApiTests>false</generateApiTests> | |
<generateModelTests>false</generateModelTests> | |
<generateModelDocumentation>false</generateModelDocumentation> | |
<generateApiDocumentation>false</generateApiDocumentation> | |
<supportingFilesToGenerate> | |
AbstractOpenApiSchema.java,ApiClient.java,ApiException.java,ApiResponse.java,JSON.java,Pair.java,RFC3339DateFormat.java | |
</supportingFilesToGenerate> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment