[ 
https://issues.apache.org/jira/browse/CXF-7045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15491378#comment-15491378
 ] 

Andriy Redko commented on CXF-7045:
-----------------------------------

I think the problem is understood: our Swagger 2 implementation does not 
directly depend on *com.fasterxml.jackson.jaxrs* so that is why those are not 
being installed during *feature:install*.  Now, there are couple of options 
here:
 - remove *com.fasterxml.jackson.jaxrs* from the *feature.xml* so it becomes 
the responsibility of the user to install it
 - add *com.fasterxml.jackson.jaxrs.json;resolution:=optional* to 
*cxf.osgi.import* section (*cxf-rt-rs-service-description-swagger* module)
 - remove *dependency="true"* or use *install="auto"* (waiting for advise here 
from Christian)

It seems like the first option is the easier one to take, but second one could 
be more beneficial to the users, what do you [~sergey_beryozkin], [~ay]?
Thanks!


> Update sample description_swagger2_osgi README.txt
> --------------------------------------------------
>
>                 Key: CXF-7045
>                 URL: https://issues.apache.org/jira/browse/CXF-7045
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>            Reporter: John Poth
>            Assignee: Freeman Fang
>            Priority: Minor
>             Fix For: 3.2.0, 3.1.8
>
>
> Update jackson version. Currently getting the error:
> {code}
> Caused by: org.osgi.framework.BundleException: Unable to resolve 
> org.apache.cxf.samples.jax_rs_description_swagger2_osgi [146](R 146.0): 
> missing requirement [org.apache.cxf.samples.jax_rs_description_swagger2_osgi 
> [146](R 146.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=com.fasterxml.jackson.jaxrs.json)(version>=2.6.0)(!(version>=3.0.0)))
>  Unresolved requirements: 
> [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi [146](R 146.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=com.fasterxml.jackson.jaxrs.json)(version>=2.6.0)(!(version>=3.0.0)))]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to