sonatype-nexus-community / nexus-repository-apt

A Nexus Repository 3 plugin that allows usage of apt repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

version 1.0.7 not working on nexus 3.12.x

flamein opened this issue · comments

Using apt plugin 1.0.7 on nexus 3.12.x outside of docker images

2018-06-27 09:24:20,136+0000 INFO  [jetty-main-1]  *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Installing: [nexus-oss-feature/3.12.1.01]
2018-06-27 09:24:20,247+0000 WARN  [pool-17-thread-4]  *SYSTEM org.ops4j.pax.url.mvn.internal.AetherBasedResolver - Error resolving artifact org.apache.commons:commons-compress:jar:1.11: [Could not find artifact org.apache.commons:commons-compress:jar:1.11]
java.io.IOException: Error resolving artifact org.apache.commons:commons-compress:jar:1.11: [Could not find artifact org.apache.commons:commons-compress:jar:1.11]

Solution seems to be already implemented for docker image in #57

Since then commons-compress already released version 1.17 i believe?

Also, in pom.xml there is no version mentioned, so how does it get this specific version when starting nexus?

so it's in nexus-core-feature-3.12.1-01-features.xml.

setting 1.17 there doesn't help, looking what to put there

nexus 3.12 ships with 1.16.1 version, changing that leads to a new error:

2018-06-27 11:20:38,188+0000 ERROR [jetty-main-1]  *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to initialize context
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-core-feature; type=karaf.feature; version=0; filter:="(&(osgi.identity=nexus-core-feature)(type=karaf.feature)(version>=0.0.0))" [caused by: Unable to resolve nexus-core-feature/3.12.1.01: missing requirement [nexus-core-feature/3.12.1.01] osgi.identity; osgi.identity=nexus-repository-apt; type=karaf.feature [caused by: Unable to resolve nexus-repository-apt/1.0.7: missing requirement [nexus-repository-apt/1.0.7] osgi.identity; osgi.identity=net.staticsnow.nexus-repository-apt; type=osgi.bundle; version="[1.0.7,1.0.7]"; resolution:=mandatory [caused by: Unable to resolve net.staticsnow.nexus-repository-apt/1.0.7: missing requirement [net.staticsnow.nexus-repository-apt/1.0.7] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.commons.compress.archivers)(version>=1.17.0))"]]]

Okay, i see now the updated readme mentioning
<bundle>mvn:org.apache.commons/commons-compress/1.16.1</bundle>