@Mojo(name="createMetaDescriptor",
defaultPhase=GENERATE_SOURCES,
requiresProject=false)
public class CreateMetaDescriptorMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
apiSpec |
protected org.apache.maven.plugin.MojoExecution |
mojoExecution |
protected boolean |
skipValidation |
| Constructor and Description |
|---|
CreateMetaDescriptorMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
static Path |
getApiSpec(Path inputApiSpec,
org.apache.maven.plugin.logging.Log log)
Determines if the apiSpec is an exchange file, if so it will assume there's a main file to properly point out the API spec
relative to the exchange.json file
|
@Parameter(property="apiSpec",
required=true)
protected File apiSpec
@Parameter(property="skipValidation",
defaultValue="false")
protected boolean skipValidation
@Parameter(defaultValue="${mojoExecution}")
protected org.apache.maven.plugin.MojoExecution mojoExecution
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic static Path getApiSpec(Path inputApiSpec, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the exchange.json file cannot be parsedCopyright © 2023 Mulesoft. All rights reserved.