private void checkPluginValid(File jarFile, PluginDefinition pluginDefinition) {
        String info = "[%s] not defined in plugin.yaml for " + jarFile.getName();
        Preconditions.expectNotBlank(pluginDefinition.getName(), ErrorCodeEnum.INVALID_PARAMETER,
                String.format(info, "name"));
        Preconditions.expectNotEmpty(pluginDefinition.getJavaVersion(), String.format(info, "javaVersion"));
        Preconditions.expectNotEmpty(pluginDefinition.getPluginClasses(), String.format(info, "pluginClasses"));
        if (StringUtils.isEmpty(pluginDefinition.getDescription())) {
            log.warn(String.format(info, "description"));
        }

        for (String clazz : pluginDefinition.getPluginClasses()) {
            try {
                this.loadClass(clazz);
            } catch (ClassNotFoundException e) {
                throw new RuntimeException(String.format("plugin class %s not found in %s", clazz, jarFile.getName()));
            }
        }

        JarHell.checkJavaVersion(pluginDefinition.getName(), pluginDefinition.getJavaVersion());
    }
load pluginDefinition in **.jar/META-INF/plugin.yaml
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/plugin/PluginClassLoader.java