@Mojo(name="openapi.json",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
threadSafe=true)
public class OpenAPIMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
application |
protected File |
classes |
protected Map<String,String> |
configuration |
protected String |
encoding |
protected Collection<String> |
endpointClasses |
protected InfoImpl |
info |
protected String |
operationNamingStrategy |
protected File |
output |
protected boolean |
prettify |
protected org.apache.maven.project.MavenProject |
project |
protected boolean |
skip |
| Constructor and Description |
|---|
OpenAPIMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(property="geronimo-openapi.skip",
defaultValue="false")
protected boolean skip
@Parameter(property="geronimo-openapi.prettify",
defaultValue="true")
protected boolean prettify
@Parameter(property="geronimo-openapi.output",
defaultValue="${project.build.outputDirectory}/META-INF/resources/openapi.json")
protected File output
@Parameter(property="geronimo-openapi.encoding",
defaultValue="UTF-8")
protected String encoding
@Parameter protected String application
@Parameter protected Collection<String> endpointClasses
@Parameter(defaultValue="${project.build.outputDirectory}")
protected File classes
@Parameter(property="geronimo-openapi.operationNamingStrategy",
defaultValue="org.apache.geronimo.microprofile.openapi.impl.processor.spi.NamingStrategy$Default")
protected String operationNamingStrategy
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter protected InfoImpl info
Copyright © 2018–2022 The Apache Software Foundation. All rights reserved.