Class 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 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
    • Constructor Detail

      • PojoToJsonSchemaMojo

        public PojoToJsonSchemaMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException