private void generateSchema(String classOrPackageName, boolean targetPackage) throws MojoExecutionException {
        Predicate<String> filter = GlobHandler.createClassOrPackageNameFilter(classOrPackageName, targetPackage);
        List<PotentialSchemaClass> matchingClasses = this.getAllClassNames().stream()
                .filter(entry -> filter.test(entry.getAbsolutePathToMatch()))
                .sorted()
                .collect(Collectors.toList());
        for (PotentialSchemaClass potentialTarget : matchingClasses) {
            if (potentialTarget.isAlreadyGenerated()) {
                this.getLog().info("- Skipping already generated " + potentialTarget.getFullClassName());
            } else {
                this.generateSchema(potentialTarget);
                potentialTarget.setAlreadyGenerated();
            }
        }
        if (matchingClasses.isEmpty()) {
            this.logForNoClassesMatchingFilter(classOrPackageName);
        }
    }
Generate the JSON schema for the given className.

@param classOrPackageName The name or glob pattern of the class or package
@param targetPackage whether the given name or glob pattern refers to a package
@throws MojoExecutionException In case of problems
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/SchemaGeneratorMojo.java