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
Fields Modifier and Type Field Description protected boolean
attach
protected File
classesDir
protected String
classifier
protected String
description
protected org.apache.maven.project.MavenProject
project
protected org.apache.maven.project.MavenProjectHelper
projectHelper
protected String
schemaClass
protected File
target
protected String
title
-
Constructor Summary
Constructors Constructor Description PojoToJsonSchemaMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
private URLClassLoader
newLoader(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
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
newLoader
private URLClassLoader newLoader(ClassLoader parent)
-
-