private Class<?> loadClass(String className) throws MojoExecutionException {
        try {
            return this.getClassLoader().loadClass(className);
        } catch (ClassNotFoundException e) {
            throw new MojoExecutionException("Error loading class " + className, e);
        }
    }
Load a class from the plugin classpath enriched with the project dependencies.

@param className Name of the class to be loaded
@return The loaded class
@throws MojoExecutionException In case of unexpected behavior
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/SchemaGeneratorMojo.java