stataru8 commented on code in PR #464:
URL: https://github.com/apache/camel-karaf/pull/464#discussion_r1688522467


##########
features/src/main/feature/camel-features.xml:
##########
@@ -819,8 +819,17 @@
         <feature version='${camel-osgi-version-range}'>camel-core</feature>
         <feature version="[4,5)">http-client</feature>
         <bundle 
dependency='true'>wrap:mvn:com.ibm.cloud/cloudant/${cloudant-version}</bundle>
+        <bundle 
dependency='true'>wrap:mvn:com.ibm.cloud/cloudant-common/${cloudant-version}</bundle>
         <bundle 
dependency='true'>wrap:mvn:com.ibm.cloud/sdk-core/${auto-detect-version}</bundle>
-        <bundle 
dependency='true'>mvn:com.google.code.gson/gson/${auto-detect-version}</bundle>
+        <!-- 'sdk-core' requires 'com.google.gson.internal*', which is not 
exported by the original bundle -->
+        <bundle 
dependency='true'>wrap:mvn:com.google.code.gson/gson/${gson-version}$overwrite=merge&amp;Export-Package=com.google.gson*;version=${gson-version}</bundle>
+        <bundle 
dependency='true'>wrap:mvn:com.squareup.okio/okio/${squareup-okio-version}</bundle>
+        <!-- both 'okhttp' and 'okhttp-urlconnection' export 'okhttp3',
+        the fragmented host option will enforce both bundles to share the same 
class loader,
+        'okhttp' was chosen as the host because 'okhttp-urlconnection' 
contains only one package with 2 classes -->
+        <bundle 
dependency='true'>wrap:mvn:com.squareup.okhttp3/okhttp/${squareup-okhttp-version}$Bundle-SymbolicName=com.squareup.okhttp3.okhttp</bundle>
+        <bundle 
dependency='true'>wrap:mvn:com.squareup.okhttp3/okhttp-urlconnection/${squareup-okhttp-version}$Fragment-Host=com.squareup.okhttp3.okhttp;bundle-version=${squareup-okhttp-version}</bundle>

Review Comment:
   ```
   Caused by: java.lang.ClassNotFoundException: okhttp3.JavaNetCookieJar not 
found by 
wrap_file__C__Users_stataru_.m2_repository_com_squareup_okhttp3_okhttp_3.14.9_okhttp-3.14.9
   .jar_Bundle-Version_3.14.9
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to