Issue to install all dependencies that Pusher HTTP Client needing

Hello,

I have a problem to install all dependencies that Pusher HTTP Client needing. And ChatGPT or Copilot can’t help me.

Caused by: org.osgi.framework.BundleException: Unable to resolve fi.i4ware.dark [415](R 415.0): missing requirement [fi.i4ware.dark [415](R 415.0)] osgi.wiring.package; (&(osgi.wiring.package=com.github.luben.zstd)(version>=1.5.0)(!(version>=2.0.0))) Unresolved requirements: [[fi.i4ware.dark [415](R 415.0)] osgi.wiring.package; (&(osgi.wiring.package=com.github.luben.zstd)(version>=1.5.0)(!(version>=2.0.0)))]
	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:992)
	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:404)
	... 103 more

Based to this:

<dependency>
            <groupId>com.github.luben</groupId>
            <artifactId>zstd-jni</artifactId>
            <version>1.5.0-2</version>
            <scope>compile</scope>
        </dependency>

Here is build in pom.xml:

 <build>
        <plugins>
            <plugin>
                <groupId>org.owasp</groupId>
                    <artifactId>dependency-check-maven</artifactId>
                    <version>8.4.3</version>
                <configuration>
                    <skipProvidedScope>true</skipProvidedScope>
                    <skipRuntimeScope>true</skipRuntimeScope>
                </configuration>
                <executions>
                    <execution>
                    <goals>
                        <goal>check</goal>
                    </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
                    <enableQuickReload>true</enableQuickReload>
                    <instructions>
                    <DynamicImport-Package>
                        com.atlassian.upm.api.license;version="2.0.1",
                        com.atlassian.upm.api.license.entity;version="2.0.1",
                        com.atlassian.upm.api.util;version="2.0.1",
                        com.atlassian.upm.license.storage.plugin;version="2.0.1",
                        com.sun.mirror.*;version="0.0"
                    </DynamicImport-Package>
                    <Export-Package>
                        fi.i4ware.api,
                        *
                    </Export-Package>
                    <Import-Package>
                        com.atlassian.confluence.themes,
                        org.springframework.osgi.*;resolution:="optional",
                        org.eclipse.gemini.blueprint.*;resolution:="optional", 
                        *
                    </Import-Package>
                    <Spring-Context>*</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <verbose>false</verbose>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>17</source>
                    <target>17</target>
                    <compilerArgs>
                        <arg>--add-modules</arg>
                        <arg>jdk.jdi,jdk.attach</arg>
                    </compilerArgs>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.3.0</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>
                            <filters>
                                <filter>
                                    <artifact>org.ow2.asm:asm</artifact>
                                    <excludes>
                                        <exclude>META-INF/*.SF</exclude>
                                        <exclude>META-INF/*.DSA</exclude>
                                        <exclude>META-INF/*.RSA</exclude>
                                    </excludes>
                                </filter>
                                <filter>
                                    <artifact>org.osgi:org.osgi.framework</artifact>
                                    <excludes>
                                        <exclude>**/org/osgi/framework/wiring/**</exclude>
                                    </excludes>
                                </filter>
                                <!-- Add filters for banned dependencies -->
                                <filter>
                                    <artifact>org.apache.httpcomponents:httpcore</artifact>
                                    <excludes>
                                        <exclude>**/*</exclude>
                                    </excludes>
                                </filter>
                                <filter>
                                    <artifact>org.apache.httpcomponents:httpclient</artifact>
                                    <excludes>
                                        <exclude>**/*</exclude>
                                    </excludes>
                                </filter>
                                <filter>
                                    <artifact>org.slf4j:slf4j-api</artifact>
                                    <excludes>
                                        <exclude>**/*</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>4.2.1</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>fi.i4ware.dark</Bundle-SymbolicName>
                        <Import-Package>
                            org.springframework.osgi.*;resolution:=optional,
                            org.eclipse.gemini.blueprint.*;resolution:=optional,
                            com.oracle.svm.core.annotate,
                            io.netty.internal.tcnative,
                            com.aayushatharva.brotli4j,
                            com.barchart.udt,
                            com.fasterxml.aalto,
                            com.github.luben.zstd;version="[1.5,2.0)", <!-- Correct package name and version range -->
                            gnu.io,
                            org.osgi.framework;version="[1.9,2.0)",
                            org.objectweb.asm;version="[9.7,10)",
                            sun.management,
                            sun.invoke.util,
                            sun.net,
                            sun.net.www,
                            sun.nio.ch,
                            sun.reflect.annotation,
                            sun.reflect.generics.factory,
                            sun.reflect.generics.reflectiveObjects,
                            sun.reflect.generics.repository,
                            sun.security.jca,
                            sun.security.provider,
                            sun.security.ssl,
                            sun.security.util,
                            sun.security.x509,
                            sun.text.spi,
                            sun.util.calendar,
                            sun.util.cldr,
                            sun.util.locale,
                            sun.util.locale.provider,
                            sun.util.resources,
                            jdk.internal,
                            jdk.internal.access,
                            jdk.internal.event,
                            jdk.internal.loader,
                            jdk.internal.logger,
                            jdk.internal.misc,
                            jdk.internal.module,
                            jdk.internal.org.objectweb.asm,
                            jdk.internal.platform,
                            jdk.internal.ref,
                            jdk.internal.reflect,
                            jdk.internal.util,
                            jdk.internal.vm,
                            jdk.internal.vm.annotation,
                            jdk.jfr.events,
                            jdk.jfr.internal,
                            jdk.jfr.internal.jfc,
                            jdk.vm.ci.aarch64,
                            jdk.vm.ci.amd64,
                            jdk.vm.ci.code,
                            jdk.vm.ci.code.site,
                            jdk.vm.ci.code.stack,
                            jdk.vm.ci.common,
                            jdk.vm.ci.hotspot,
                            jdk.vm.ci.hotspot.aarch64,
                            jdk.vm.ci.meta,
                            jdk.vm.ci.runtime,
                            jdk.vm.ci.services,
                            lzma.sdk,
                            lzma.sdk.lzma,
                            net.jpountz.lz4,
                            net.jpountz.xxhash,
                            org.apache.logging.log4j.spi,
                            org.conscrypt,
                            org.eclipse.jetty.alpn,
                            org.eclipse.jetty.npn,
                            org.jboss.marshalling,
                            reactor.blockhound,
                            reactor.blockhound.integration,
                            *
                        </Import-Package>
                        <Embed-Dependency>
                            protobuf-java;scope=compile|runtime,
                            protobuf-javanano;scope=compile|runtime,
                            jzlib;scope=compile|runtime,
                            compress-lzf;scope=compile|runtime,
                            svm;scope=compile|runtime,
                            netty-all;scope=compile|runtime,
                            netty-tcnative-boringssl-static;scope=compile|runtime,
                            brotli4j;scope=compile|runtime,
                            barchart-udt-bundle;scope=compile|runtime,
                            aalto-xml;scope=compile|runtime,
                            asm;scope=compile|runtime,
                            com.github.luben.zstd;scope=compile|runtime
                        </Embed-Dependency>
                        <Embed-Transitive>true</Embed-Transitive>
                        <Export-Package>
                            fi.i4ware.api,
                            com.pusher.*,
                            com.google.protobuf.*,
                            com.google.protobuf.nano.*,
                            com.jcraft.jzlib.*,
                            com.ning.compress.*,
                            com.oracle.svm.core.annotate.*,
                            io.netty.internal.tcnative.*,
                            org.objectweb.asm.*,
                            com.sun.jdi,
                            com.sun.jdi.connect,
                            com.sun.jdi.event,
                            com.sun.jdi.request,
                            com.sun.tools.attach,
                            com.sun.management.internal,
                            sun.management,
                            sun.invoke.util,
                            sun.net,
                            sun.net.www,
                            sun.nio.ch,
                            sun.reflect.annotation,
                            sun.reflect.generics.factory,
                            sun.reflect.generics.reflectiveObjects,
                            sun.reflect.generics.repository,
                            sun.security.jca,
                            sun.security.provider,
                            sun.security.ssl,
                            sun.security.util,
                            sun.security.x509,
                            sun.text.spi,
                            sun.util.calendar,
                            sun.util.cldr,
                            sun.util.locale,
                            sun.util.locale.provider,
                            sun.util.resources,
                            jdk.internal,
                            jdk.internal.access,
                            jdk.internal.event,
                            jdk.internal.loader,
                            jdk.internal.logger,
                            jdk.internal.misc,
                            jdk.internal.module,
                            jdk.internal.org.objectweb.asm,
                            jdk.internal.platform,
                            jdk.internal.ref,
                            jdk.internal.reflect,
                            jdk.internal.util,
                            jdk.internal.vm,
                            jdk.internal.vm.annotation,
                            jdk.jfr.events,
                            jdk.jfr.internal,
                            jdk.jfr.internal.jfc,
                            jdk.vm.ci.aarch64,
                            jdk.vm.ci.amd64,
                            jdk.vm.ci.code,
                            jdk.vm.ci.code.site,
                            jdk.vm.ci.code.stack,
                            jdk.vm.ci.common,
                            jdk.vm.ci.hotspot,
                            jdk.vm.ci.hotspot.aarch64,
                            jdk.vm.ci.meta,
                            jdk.vm.ci.runtime,
                            jdk.vm.ci.services,
                            lzma.sdk,
                            lzma.sdk.lzma,
                            net.jpountz.lz4,
                            net.jpountz.xxhash,
                            org.apache.logging.log4j.spi,
                            org.conscrypt,
                            org.eclipse.jetty.alpn,
                            org.eclipse.jetty.npn,
                            org.jboss.marshalling,
                            reactor.blockhound,
                            reactor.blockhound.integration,
                            com.aayushatharva.brotli4j,
                            com.barchart.udt,
                            com.fasterxml.aalto,
                            com.github.luben.zstd,
                            *
                        </Export-Package>
                        <Private-Package>
                            com.pusher,
                            com.google.protobuf,
                            com.google.protobuf.nano,
                            com.jcraft.jzlib,
                            com.ning.compress,
                            com.oracle.svm.core.annotate,
                            io.netty.internal.tcnative,
                            org.objectweb.asm
                        </Private-Package>
                        <DynamicImport-Package>
                            *
                        </DynamicImport-Package>
                        <Bundle-StartLevel>20</Bundle-StartLevel>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
        <sourceDirectory>src/main/java</sourceDirectory>
        <defaultGoal>package</defaultGoal>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>atlassian-plugin.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>**/*.*</include>
                </includes>
                <excludes>
                    <exclude>atlassian-plugin.xml</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>META-INF/LICENSE/**</include>
                </includes>
            </resource>
        </resources>
    </build>