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 SummaryFields Modifier and Type Field Description protected booleanattachprotected FileclassesDirprotected Stringclassifierprotected Stringdescriptionprotected org.apache.maven.project.MavenProjectprojectprotected org.apache.maven.project.MavenProjectHelperprojectHelperprotected StringschemaClassprotected Filetargetprotected Stringtitle
 - 
Constructor SummaryConstructors Constructor Description PojoToJsonSchemaMojo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()private URLClassLoadernewLoader(ClassLoader parent)
 
- 
- 
- 
Field Detail- 
schemaClass@Parameter(property="johnzon.jsonschema.schemaClass") protected String 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@Parameter(property="johnzon.jsonschema.title") protected String title 
 - 
description@Parameter(property="johnzon.jsonschema.description") protected String description 
 
- 
 - 
Method Detail- 
executepublic void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
 - 
newLoaderprivate URLClassLoader newLoader(ClassLoader parent) 
 
- 
 
-