Package org.openapitools.codegen.plugin
Class CodeGenMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.openapitools.codegen.plugin.CodeGenMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES, threadSafe=true) public class CodeGenMojo extends org.apache.maven.plugin.AbstractMojoGoal which generates client/server code from a OpenAPI json/yaml definition.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>environmentVariablesprotected Map<String,String>globalPropertiesprotected StringinputSpecLocation of the OpenAPI spec, as URL or file.protected StringinputSpecRootDirectoryLocal root folder with spec files
-
Constructor Summary
Constructors Constructor Description CodeGenMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
inputSpec
@Parameter(name="inputSpec", property="openapi.generator.maven.plugin.inputSpec") protected String inputSpecLocation of the OpenAPI spec, as URL or file.
-
inputSpecRootDirectory
@Parameter(name="inputSpecRootDirectory", property="openapi.generator.maven.plugin.inputSpecRootDirectory") protected String inputSpecRootDirectoryLocal root folder with spec files
-
-