private void logForNoClassesMatchingFilter(String classOrPackageName) throws MojoExecutionException {
        StringBuilder message = new StringBuilder("No matching class found for \"")
                .append(classOrPackageName)
                .append("\" on classpath");
        if (!Util.isNullOrEmpty(this.excludeClassNames)) {
            message.append(" that wasn't excluded");
        }
        if (this.failIfNoClassesMatch) {
            message.append(".\nYou can change this error to a warning by setting: <failIfNoClassesMatch>false</failIfNoClassesMatch>");
            throw new MojoExecutionException(message.toString());
        }
        this.getLog().warn(message.toString());
    }
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