Skip to content

Fix Swagger UI work with CXF in Karaf#220

Closed
vbogatyrov wants to merge 1 commit intoapache:masterfrom
vbogatyrov:master
Closed

Fix Swagger UI work with CXF in Karaf#220
vbogatyrov wants to merge 1 commit intoapache:masterfrom
vbogatyrov:master

Conversation

@vbogatyrov
Copy link

@vbogatyrov vbogatyrov commented Jan 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant