Package org.apache.johnzon.maven.plugin
Class ExampleToModelMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.johnzon.maven.plugin.ExampleToModelMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="example-to-model",
defaultPhase=GENERATE_SOURCES)
public class ExampleToModelMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected booleanprotected Stringprotected org.apache.maven.project.MavenProjectprotected Fileprotected Fileprotected booleanprotected booleanFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
source
@Parameter(property="johnzon.source", defaultValue="${project.basedir}/src/main/johnzon") protected File source -
target
@Parameter(property="johnzon.target", defaultValue="${project.build.directory}/generated-sources/johnzon") protected File target -
packageBase
@Parameter(property="johnzon.package", defaultValue="com.johnzon.generated") protected String packageBase -
header
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project -
attach
@Parameter(property="johnzon.attach", defaultValue="true") protected boolean attach -
useRecord
@Parameter(property="johnzon.useRecord", defaultValue="false") protected boolean useRecord -
useJsonb
@Parameter(property="johnzon.useJsonb", defaultValue="false") protected boolean useJsonb -
ignoreNull
@Parameter(property="johnzon.ignoreNull", defaultValue="false") protected boolean ignoreNull
-
-
Constructor Details
-
ExampleToModelMojo
public ExampleToModelMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-