Package org.apache.johnzon.maven.plugin
Class PojoToJsonSchemaMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.johnzon.maven.plugin.PojoToJsonSchemaMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jsonschema",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=RUNTIME_PLUS_SYSTEM)
public class PojoToJsonSchemaMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Fileprotected Stringprotected Stringprotected org.apache.maven.project.MavenProjectprotected org.apache.maven.project.MavenProjectHelperprotected Stringprotected Fileprotected StringFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()private URLClassLoadernewLoader(ClassLoader parent) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
schemaClass
-
target
@Parameter(property="johnzon.jsonschema.target", defaultValue="${project.build.outputDirectory}/jsonschema/schema.json") protected File target -
classesDir
@Parameter(property="johnzon.jsonschema.classesDir", defaultValue="${project.build.outputDirectory}") protected File classesDir -
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project -
projectHelper
@Component protected org.apache.maven.project.MavenProjectHelper projectHelper -
attach
@Parameter(property="johnzon.attach", defaultValue="true") protected boolean attach -
classifier
@Parameter(property="johnzon.jsonschema.classifier", defaultValue="jsonschema") protected String classifier -
title
-
description
-
-
Constructor Details
-
PojoToJsonSchemaMojo
public PojoToJsonSchemaMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
newLoader
-