Okay using latest karaf 4.2 m2 I get this:

karaf@root()> feature:install cxf
Error executing command: No matching features for cxf/0
karaf@root()> feature:repo-add cxf 3.2.2
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.2.2/xml/features
karaf@root()> feature:install cxf-rs-description-swagger2
karaf@root()> install -s
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT
Bundle ID: 116
Error executing command: Error installing bundles:
        Unable to start bundle
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT:
org.osgi.framework.BundleException: Unable
to resolve org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R
116.0): missing requirement [org.apache.cxf.samples.jax_rs_description_swag
ger2_osgi [116](R 116.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0.0)))
Unresolved requi
rements: [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R
116.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.bluepr
int)(version>=1.0.0)(!(version>=2.0.0)))]
karaf@root()> feature:install scr
karaf@root()> install -s
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT
Bundle ID: 116
Error executing command: Error installing bundles:
        Unable to start bundle
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT:
org.osgi.framework.BundleException: Unable
to resolve org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R
116.0): missing requirement [org.apache.cxf.samples.jax_rs_description_swag
ger2_osgi [116](R 116.0)] osgi.wiring.package;
(&(osgi.wiring.package=org.osgi.service.blueprint)(version>=1.0.0)(!(version>=2.0.0)))
Unresolved requi
rements: [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R
116.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.bluepr
int)(version>=1.0.0)(!(version>=2.0.0)))]
karaf@root()> feature:install blueprint-web
karaf@root()> install -s
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT
Bundle ID: 116
Error executing command: Error installing bundles:
        Unable to start bundle
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT:
org.osgi.framework.BundleException: Uses co
nstraint violation. Unable to resolve resource
org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[org.apache.cxf.samples.jax_rs_description_swag
ger2_osgi [116](R 116.0)] because it is exposed to package
'javax.annotation' from resources javax.annotation-api
[javax.annotation-api [54](R 54.0)]
and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via
two dependency chains.

Chain 1:
  org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R 116.0)]
    import:
(&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0)))
     |
    export: osgi.wiring.package: javax.annotation
  javax.annotation-api [javax.annotation-api [54](R 54.0)]

Chain 2:
  org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R 116.0)]
    import:
(&(osgi.wiring.package=io.swagger.jaxrs.config)(version>=1.5.0)(!(version>=2.0.0)))
     |
    export: osgi.wiring.package=io.swagger.jaxrs.config;
uses:=org.reflections.util
  io.swagger.jaxrs [io.swagger.jaxrs [51](R 51.0)]
    import:
(&(osgi.wiring.package=org.reflections.util)(version>=0.9.0)(!(version>=1.0.0)))
     |
    export: osgi.wiring.package=org.reflections.util; uses:=javax.annotation
  org.apache.servicemix.bundles.reflections
[org.apache.servicemix.bundles.reflections [81](R 81.0)]
    import: (osgi.wiring.package=javax.annotation)
     |
    export: osgi.wiring.package: javax.annotation
  org.apache.felix.framework [org.apache.felix.framework [0](R 0)]
Unresolved requirements:
[[org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[116](R 116.0)] osgi.wiring.package;
(&(osgi.wiring.package=io.swagger.jaxrs.config)(version>=1.5.0)(!(version>=2.0.0)))]
karaf@root()> feature:install webconsole
karaf@root()> install -s
mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT


I will try with the mentioned 3.x karaf in the samples and return with
status..

On Fri, Feb 23, 2018 at 9:06 AM, nino martinez wael <
[email protected]> wrote:

> I havent tried it with the "official" examples..
>
> I'll give it a go.
>
> On Wed, Feb 21, 2018 at 10:46 AM, Colm O hEigeartaigh <[email protected]
> > wrote:
>
>> Do you have exact steps to reproduce the problem?
>>
>> Colm.
>>
>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
>> [email protected]> wrote:
>>
>> > Hi I am using cxf plus the swagger intent.. And it is working in the
>> sense
>> > that the swager documents gets published.
>> >
>> > I noticed once and only once that on the CXF "overview" page where you
>> > normally can see the different endpoints that are registered there were
>> > also a link to the swagger documentation..
>> >
>> > What's up with that, I wonder why it's not there consistently?
>> >
>> > --
>> > Best regards / Med venlig hilsen
>> > Nino Martinez
>> >
>>
>>
>>
>> --
>> Colm O hEigeartaigh
>>
>> Talend Community Coder
>> http://coders.talend.com
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Reply via email to