Well, just to give an update. Unfortunately no matter the configurations I ended up always with a problem while trying to use a more recent cxf version with DOSGi
This was my last try with the karaf-maven-plugin <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <extensions>true</extensions> <configuration> ... <blacklistedRepositories> <repository>mvn:org.apache.cxf.karaf/apache-cxf/3.1.7/xml/features</repository> </blacklistedRepositories> <blacklistedBundles> <bundle>mvn:org.apache.cxf/cxf-core/3.1.7</bundle> <bundle>mvn:org.apache.cxf/cxf-rt-rs-client/3.1.7</bundle> <bundle>mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.1.7</bundle> <bundle>mvn:org.apache.cxf/cxf-rt-rs-extension-search/3.1.7</bundle> <bundle>mvn:org.apache.cxf/cxf-rt-rs-service-description/3.1.7</bundle> <bundle>mvn:org.apache.cxf/cxf-rt-rs-service-description-swagger/3.1.7</bundle> <bunble>mvn:org.apache.cxf/cxf-rt-transports-http/3.1.7</bunble> <bundle>mvn:org.apache.cxf/cxf-rt-frontend-jaxrs/3.1.7</bundle> </blacklistedBundles> </configuration> </plugin> while having <dependency> <groupId>org.apache.cxf.karaf</groupId> <artifactId>apache-cxf</artifactId> <classifier>features</classifier> <type>xml</type> <version>3.1.10</version> <scope>runtime</scope> </dependency> I was presented with a resolver exception 2017-03-17T10:08:55,545 | ERROR | pool-2-thread-2 | BootFeaturesInstaller | 7 - org.apache.karaf.features.core - 4.1.0 | Error installing boot features org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=core; type=karaf.feature; version="[1.0.1.SNAPSHOT,1.0.1.SNAPSHOT]"; filter:="(&(osgi.identity=core)(type=karaf.feature)(version>=1.0.1.SNAPSHOT)(version<=1.0.1.SNAPSHOT))" [caused by: Unable to resolve core/1.0.1.SNAPSHOT: missing requirement [core/1.0.1.SNAPSHOT] osgi.identity; osgi.identity=core-ws; type=karaf.feature [caused by: Unable to resolve core-ws/1.0.1.SNAPSHOT: missing requirement [core-ws/1.0.1.SNAPSHOT] osgi.identity; osgi.identity=core-ws-cxf; type=karaf.feature [caused by: Unable to resolve core-ws-cxf/1.0.1.SNAPSHOT: missing requirement [core-ws-cxf/1.0.1.SNAPSHOT] osgi.identity; osgi.identity=com.acme.platform.modules.ws-rs; type=osgi.bundle; version="[1.0.1.201703171007,1.0.1.201703171007]"; resolution:=mandatory [caused by: Unable to resolve com.acme.platform.modules.ws-rs/1.0.1.201703171007: missing requirement [com.acme.platform.modules.ws-rs/1.0.1.201703171007] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.cxf.jaxrs.swagger)(version>=3.1.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.apache.cxf.cxf-rt-rs-service-description-swagger/3.1.10: missing requirement [org.apache.cxf.cxf-rt-rs-service-description-swagger/3.1.10] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.fasterxml.jackson.databind.introspect)(version>=2.8.0)(!(version>=3.0.0)))" [caused by: Unable to resolve com.fasterxml.jackson.core.jackson-databind/2.8.6: missing requirement [com.fasterxml.jackson.core.jackson-databind/2.8.6] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.fasterxml.jackson.core.util)(version>=2.8.0)(!(version>=3.0.0)))" [caused by: Unable to resolve com.fasterxml.jackson.core.jackson-core/2.8.6: missing requirement [com.fasterxml.jackson.core.jackson-core/2.8.6] osgi.identity; osgi.identity="root#cxf-jackson-3.1.10"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#cxf-jackson-3.1.10: missing requirement [root#cxf-jackson-3.1.10] osgi.identity; osgi.identity=cxf-jackson; type=karaf.feature; version="[3.1.10,3.1.10]" [caused by: Unable to resolve cxf-jackson/3.1.10: missing requirement [cxf-jackson/3.1.10] osgi.identity; osgi.identity=com.fasterxml.jackson.dataformat.jackson-dataformat-yaml; type=osgi.bundle; version="[2.8.6,2.8.6]"; resolution:=mandatory [caused by: Unable to resolve com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.8.6: missing requirement [com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.8.6] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.yaml.snakeyaml)(version>=1.17.0)(!(version>=2.0.0)))"]]]]]]]]]] at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42) ~[?:?] at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389) ~[?:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375) ~[?:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347) ~[?:?] at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218) ~[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:285) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?] I'm going to replicate the dosgi feature on my custom feature. From what I've seen I think it's the only way. I don't fully understand why after blacklisting the repository version I still have 3.1.7 cxf bundles installed. Also I've tried using the oneVersion property of karaf-maven-plugin but it probably doesn't do what I was thinking (despite the documentation saying "If set to true then for each bundle symbolic name only the highest version will be used") -- View this message in context: http://karaf.922171.n3.nabble.com/CXF-3-1-8-in-karaf-4-1-1-tp4049844p4049869.html Sent from the Karaf - User mailing list archive at Nabble.com.