'Cannot deploy kar automatically to Nexus RM 3

I got an executable kar from running mvn -PbuildKar clean install from bundle: https://github.com/sonatype-nexus-community/nexus-repository-cargo/pull/13 I drop it to /nexus_install/deploy and it tries to load but it came back with error "missing requirement" Could you please point out what im missing? Thank you.

*022-02-03 16:20:22,453+1100 DEBUG [downloader-4-thread-8] *SYSTEM org.ops4j.pax.url.mvn.internal.AetherBasedResolver - Adding repo from inside multi dir: file:/cases/60176/boot-20220202-205657-1/sonatype-work/nexus3/cache/kars/nexus-repository-cargo-0.0.4-SNAPSHOT-bundle/@id=nexus-repository-cargo-0.0.4-SNAPSHOT-bundle 2022-02-03 16:20:22,548+1100 ERROR [features-2-thread-1] *SYSTEM java.lang.Throwable - org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-repository-cargo; type=karaf.feature; version="[0.0.4.SNAPSHOT,0.0.4.SNAPSHOT]"; filter:="(&(osgi.identity=nexus-repository-cargo)(type=karaf.feature)(version>=0.0.4.SNAPSHOT)(version<=0.0.4.SNAPSHOT))" [caused by: Unable to resolve nexus-repository-cargo/0.0.4.SNAPSHOT: missing requirement [nexus-repository-cargo/0.0.4.SNAPSHOT] osgi.identity; osgi.identity=org.eclipse.jgit; type=osgi.bundle; version="[5.0.1.201806211838-r,5.0.1.201806211838-r]"; resolution:=mandatory [caused by: Unable to resolve org.eclipse.jgit/5.0.1.201806211838-r: missing requirement [org.eclipse.jgit/5.0.1.201806211838-r] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.jcraft.jsch)(version>=0.1.37)(!(version>=0.2.0)))"]] 2022-02-03 16:20:22,550+1100 ERROR [features-2-thread-1] *SYSTEM java.lang.Throwable - Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve nexus-repository-cargo/0.0.4.SNAPSHOT: missing requirement [nexus-repository-cargo/0.0.4.SNAPSHOT] osgi.identity; osgi.identity=org.eclipse.jgit; type=osgi.bundle; version="[5.0.1.201806211838-r,5.0.1.201806211838-r]"; resolution:=mandatory [caused by: Unable to resolve org.eclipse.jgit/5.0.1.201806211838-r: missing requirement [org.eclipse.jgit/5.0.1.201806211838-r] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.jcraft.jsch)(version>=0.1.37)(!(version>=0.2.0)))"] 2022-02-03 16:20:22,551+1100 WARN [fileinstall-/cases/60176/boot-20220202-205657-1/nexus-3.35.0-02/deploy] SYSTEM org.apache.karaf.kar.internal.KarServiceImpl - Unable to install Kar feature nexus-repository-cargo/0.0.4.SNAPSHOT org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-repository-cargo; type=karaf.feature; version="[0.0.4.SNAPSHOT,0.0.4.SNAPSHOT]"; filter:="(&(osgi.identity=nexus-repository-cargo)(type=karaf.feature)(version>=0.0.4.SNAPSHOT)(version<=0.0.4.SNAPSHOT))" [caused by: Unable to resolve nexus-repository-cargo/0.0.4.SNAPSHOT: missing requirement [nexus-repository-cargo/0.0.4.SNAPSHOT] osgi.identity; osgi.identity=org.eclipse.jgit; type=osgi.bundle; version="[5.0.1.201806211838-r,5.0.1.201806211838-r]"; resolution:=mandatory [caused by: Unable to resolve org.eclipse.jgit/5.0.1.201806211838-r: missing requirement [org.eclipse.jgit/5.0.1.201806211838-r] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.jcraft.jsch)(version>=0.1.37)(!(version>=0.2.0)))"]] Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve nexus-repository-cargo/0.0.4.SNAPSHOT: missing requirement [nexus-repository-cargo/0.0.4.SNAPSHOT] osgi.identity; osgi.identity=org.eclipse.jgit; type=osgi.bundle; version="[5.0.1.201806211838-r,5.0.1.201806211838-r]"; resolution:=mandatory [caused by: Unable to resolve org.eclipse.jgit/5.0.1.201806211838-r: missing requirement [org.eclipse.jgit/5.0.1.201806211838-r] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.jcraft.jsch)(version>=0.1.37)(!(version>=0.2.0)))"]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source