private void generateSchema(Class<?> schemaClass) throws MojoExecutionException {
        JsonNode jsonSchema = getGenerator().generateSchema(schemaClass);
        File file = getSchemaFile(schemaClass);
        this.getLog().info("- Writing schema to file: " + file);
        this.writeToFile(jsonSchema, file);
    }
Generate the JSON schema for the given className.

@param schemaClass The class for which the schema is to be generated
@throws MojoExecutionException In case of problems
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/SchemaGeneratorMojo.java