public static PluginJar parseJar(final byte[] jarBytes) {
        PluginJar pluginJar = new PluginJar();
        try (JarInputStream jarInputStream = new JarInputStream(new ByteArrayInputStream(jarBytes))) {
            JarEntry jarEntry;
            while (Objects.nonNull(jarEntry = jarInputStream.getNextJarEntry())) {
                String entryName = jarEntry.getName();
                // get jar version
                if (jarEntry.getName().endsWith("pom.properties")) {
                    try (ByteArrayOutputStream buffer = new ByteArrayOutputStream()) {
                        int data;
                        while ((data = jarInputStream.read()) != -1) {
                            buffer.write(data);
                        }
                        buffer.flush();
                        byte[] classByteArray = buffer.toByteArray();
                        Properties properties = new Properties();
                        properties.load(new ByteArrayInputStream(classByteArray));
                        pluginJar.version = properties.get("version").toString();
                        pluginJar.artifactId = properties.get("artifactId").toString();
                        pluginJar.groupId = properties.get("groupId").toString();
                    }
                    continue;
                }
                if (!jarEntry.isDirectory() && entryName.endsWith(".class") && !entryName.contains("$")) {
                    String className = jarEntry.getName().substring(0, entryName.length() - 6).replaceAll("/", ".");
                    pluginJar.clazzMap.put(className, getClassByteArray(jarInputStream));
                } else {
                    pluginJar.resourceMap.put(jarEntry.getName(), getClassByteArray(jarInputStream));
                }
            }
        } catch (IOException e) {
            throw new ShenyuException("load jar classes find error");
        }
        return pluginJar;
    }
parseJar.

@param jarBytes jarBytes
@return PluginJar
shenyu-web/src/main/java/org/apache/shenyu/web/loader/PluginJarParser.java