GitHub user vbogatyrov opened a pull request:

    https://github.com/apache/cxf/pull/220

    Fix Swagger UI work with CXF in Karaf

    This pr is inteneded to fix it in Karaf, in case when  
org.webjars/swagger-ui is installed using "wrap" protocol, as swagger-ui 
library is a plain jar. When swagger-ui is installed using command line, like 
    
    bundle:install mvn:org.webjars/swagger-ui/VERSION  
    
    it works just fine, because despite  the installation was done by 
implicitly using "wrap", the location attribute of a swagger-ui bundle is 
mvn:/org.webjars... 
    
    
    However, when there is a need to install swagger using custom Karaf 
feature, e.g. 
    
    <feature name="my-feature" version='1.2.3'>
              <feature version='3.1.9'>cxf</feature>
          <feature version='3.1.9'>cxf-rs-description-swagger2</feature>
          <bundle>wrap:mvn:org.webjars/swagger-ui/2.1.8-M1</bundle>
     </feature>
    
    the location attribute of a swagger-ui bundle becomes like  
wrap:mvn:org.webjars/swagger-ui/VERSION, so that CXF fails to find the bundle.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vbogatyrov/cxf master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/220.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #220
    
----
commit f4d266ca740cd41dfb7553691126a3afaedf6e8b
Author: Vladimir Bogatyrov <[email protected]>
Date:   2017-01-06T16:06:14Z

    Fix Swagger UI work with CXF in Karaf

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to