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

Andrea Cosentino commented on CAMEL-9459:
-----------------------------------------

Fixed. Now it works with the latest codebase on Karaf 4.0.3:

{code}
karaf@root()> feature:repo-add 
file:///home/oscerd/.m2/repository/org/apache/camel/karaf/apache-camel/2.17-SNAPSHOT/apache-camel-2.17-SNAPSHOT-features.xml
Adding feature url 
file:///home/oscerd/.m2/repository/org/apache/camel/karaf/apache-camel/2.17-SNAPSHOT/apache-camel-2.17-SNAPSHOT-features.xml
karaf@root()> feature:install -v camel-kubernetes 
Adding features: camel-kubernetes/[2.17.0.SNAPSHOT,2.17.0.SNAPSHOT]
Changes to perform:
  Region: root
    Bundles to install:
      mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.4
      mvn:com.fasterxml.jackson.core/jackson-core/2.6.4
      mvn:com.fasterxml.jackson.core/jackson-databind/2.6.4
      mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.6.4
      mvn:io.fabric8/kubernetes-client/1.3.66/jar/bundle
      mvn:io.fabric8/kubernetes-model/1.0.40
      mvn:io.fabric8/openshift-client/1.3.66/jar/bundle
      mvn:javax.validation/validation-api/1.1.0.Final
      mvn:org.apache.camel/camel-catalog/2.17-SNAPSHOT
      mvn:org.apache.camel/camel-commands-core/2.17-SNAPSHOT
      mvn:org.apache.camel/camel-core/2.17-SNAPSHOT
      mvn:org.apache.camel/camel-kubernetes/2.17-SNAPSHOT
      mvn:org.apache.camel.karaf/camel-karaf-commands/2.17-SNAPSHOT
      
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
      mvn:org.codehaus.woodstox/stax2-api/3.1.4
      mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Installing bundles:
  mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.4
  mvn:com.fasterxml.jackson.core/jackson-core/2.6.4
  mvn:com.fasterxml.jackson.core/jackson-databind/2.6.4
  mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.6.4
  mvn:io.fabric8/kubernetes-client/1.3.66/jar/bundle
  mvn:io.fabric8/kubernetes-model/1.0.40
  mvn:io.fabric8/openshift-client/1.3.66/jar/bundle
  mvn:javax.validation/validation-api/1.1.0.Final
  mvn:org.apache.camel/camel-catalog/2.17-SNAPSHOT
  mvn:org.apache.camel/camel-commands-core/2.17-SNAPSHOT
  mvn:org.apache.camel/camel-core/2.17-SNAPSHOT
  mvn:org.apache.camel/camel-kubernetes/2.17-SNAPSHOT
  mvn:org.apache.camel.karaf/camel-karaf-commands/2.17-SNAPSHOT
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
  mvn:org.codehaus.woodstox/stax2-api/3.1.4
  mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Starting bundles:
  com.fasterxml.jackson.core.jackson-core/2.6.4
  com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.6.4
  org.apache.camel.camel-catalog/2.17.0.SNAPSHOT
  stax2-api/3.1.4
  woodstox-core-asl/4.4.1
  org.apache.camel.camel-core/2.17.0.SNAPSHOT
  com.fasterxml.jackson.core.jackson-annotations/2.6.4
  com.fasterxml.jackson.core.jackson-databind/2.6.4
  javax.validation.api/1.1.0.Final
  io.fabric8.kubernetes-model/1.0.40
  io.fabric8.openshift-client/1.3.66
  io.fabric8.kubernetes-client/1.3.66
  org.apache.camel.camel-kubernetes/2.17.0.SNAPSHOT
  org.apache.camel.camel-commands-core/2.17.0.SNAPSHOT
  org.apache.servicemix.bundles.jaxb-impl/2.2.6.1
  org.apache.camel.karaf.camel-karaf-commands/2.17.0.SNAPSHOT
Done.
{code}

Karaf 3.0.5:

{code}
karaf@root()> feature:repo-add 
file:///home/oscerd/.m2/repository/org/apache/camel/karaf/apache-camel/2.17-SNAPSHOT/apache-camel-2.17-SNAPSHOT-features.xml
Adding feature url 
file:///home/oscerd/.m2/repository/org/apache/camel/karaf/apache-camel/2.17-SNAPSHOT/apache-camel-2.17-SNAPSHOT-features.xml
karaf@root()> feature:in
feature:info       feature:install    
karaf@root()> feature:install -v camel-kubernetes 
Installing feature camel-kubernetes 2.17-SNAPSHOT
Installing feature camel-core 2.17-SNAPSHOT
Installing feature xml-specs-api 2.5.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.5.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/2.5.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.5.0
Installing bundle mvn:org.codehaus.woodstox/stax2-api/3.1.4
Installing bundle mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
Installing bundle mvn:org.apache.camel/camel-core/2.17-SNAPSHOT
Installing bundle mvn:org.apache.camel/camel-catalog/2.17-SNAPSHOT
Installing bundle mvn:javax.validation/validation-api/1.1.0.Final
Installing bundle mvn:javax.servlet/javax.servlet-api/3.1.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/2.5.0
Installing bundle mvn:com.fasterxml.jackson.core/jackson-core/2.6.4
Installing bundle mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.4
Installing bundle mvn:com.fasterxml.jackson.core/jackson-databind/2.6.4
Installing bundle 
mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.6.4
Installing bundle mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.6.4
Installing bundle 
mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.6.4
Installing bundle 
mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.6.4
Installing bundle mvn:org.yaml/snakeyaml/1.16
Installing bundle mvn:io.fabric8/kubernetes-model/1.0.40
Installing bundle mvn:io.fabric8/kubernetes-client/1.3.66/jar/bundle
Installing bundle mvn:io.fabric8/openshift-client/1.3.66/jar/bundle
Installing bundle mvn:org.apache.camel/camel-kubernetes/2.17-SNAPSHOT
karaf@root()> 
{code}

Karaf 2.4.3:

{code}
karaf@root> features:addurl 
file:///home/oscerd/.m2/repository/org/apache/camel/karaf/apache-camel/2.17-SNAPSHOT/apache-camel-2.17-SNAPSHOT-features.xml
karaf@root> features:install -v camel-kubernetes 
Installing feature camel-kubernetes 2.17-SNAPSHOT
Installing feature camel-core 2.17-SNAPSHOT
Installing feature xml-specs-api 2.5.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.5.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/2.5.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.5.0
Installing bundle mvn:org.codehaus.woodstox/stax2-api/3.1.4
Installing bundle mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
Installing bundle mvn:org.apache.camel/camel-core/2.17-SNAPSHOT
Installing bundle mvn:org.apache.camel/camel-catalog/2.17-SNAPSHOT
Installing bundle mvn:javax.validation/validation-api/1.1.0.Final
Installing bundle mvn:javax.servlet/javax.servlet-api/3.1.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/2.5.0
Installing bundle mvn:com.fasterxml.jackson.core/jackson-core/2.6.4
Installing bundle mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.4
Installing bundle mvn:com.fasterxml.jackson.core/jackson-databind/2.6.4
Installing bundle 
mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.6.4
Installing bundle mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.6.4
Installing bundle 
mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.6.4
Installing bundle 
mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.6.4
Installing bundle mvn:org.yaml/snakeyaml/1.16
Installing bundle mvn:io.fabric8/kubernetes-model/1.0.40
Installing bundle mvn:io.fabric8/kubernetes-client/1.3.66/jar/bundle
Installing bundle mvn:io.fabric8/openshift-client/1.3.66/jar/bundle
Installing bundle mvn:org.apache.camel/camel-kubernetes/2.17-SNAPSHOT
Installing feature jaas-condition-shell_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.jaas.command [23]
Installing feature admin-condition-management_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.admin.management [44]
Installing feature deployer-condition-aries_blueprint_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.deployer.blueprint [48]
Installing feature deployer-condition-kar_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.deployer.kar [46]
Installing feature camel-core-condition-shell_0_0_0 2.17-SNAPSHOT
Installing bundle mvn:org.apache.camel/camel-commands-core/2.17-SNAPSHOT
Installing bundle mvn:org.apache.camel.karaf/camel-karaf-commands/2.17-SNAPSHOT
Installing feature features-condition-shell_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.features.command [24]
Installing feature features-condition-management_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.features.management [45]
Installing feature diagnostic-condition-shell_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.diagnostic.command [50]
Installing feature diagnostic-condition-management_0_0_0 2.4.3
Found installed bundle: org.apache.karaf.diagnostic.management [51]
{code}

> Cannot install camel-kubernetes in karaf
> ----------------------------------------
>
>                 Key: CAMEL-9459
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9459
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kubernetes
>    Affects Versions: 2.17.0
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>             Fix For: 2.17.0
>
>
> The kube client is using okhttp-client and its dependencies has changed a bit
> {code}
> [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ camel-kubernetes 
> ---
> [INFO] org.apache.camel:camel-kubernetes:bundle:2.17-SNAPSHOT
> [INFO] +- org.apache.camel:camel-core:jar:2.17-SNAPSHOT:compile
> [INFO] +- io.fabric8:kubernetes-client:jar:1.3.66:compile
> [INFO] |  +- io.fabric8:kubernetes-model:jar:1.0.40:compile
> [INFO] |  |  +- 
> com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.6.3:compile
> [INFO] |  |  \- javax.validation:validation-api:jar:1.1.0.Final:compile
> [INFO] |  +- com.squareup.okhttp:okhttp:jar:2.7.0:compile
> [INFO] |  |  \- com.squareup.okio:okio:jar:1.6.0:compile
> [INFO] |  +- com.squareup.okhttp:logging-interceptor:jar:2.7.0:compile
> [INFO] |  +- com.squareup.okhttp:okhttp-ws:jar:2.7.0:compile
> [INFO] |  +- org.slf4j:jul-to-slf4j:jar:1.7.12:compile
> [INFO] |  +- 
> com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.6.3:compile
> [INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.6.3:compile
> [INFO] |  |  \- org.yaml:snakeyaml:jar:1.15:compile
> [INFO] |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.6.3:compile
> [INFO] |     \- 
> com.fasterxml.jackson.core:jackson-annotations:jar:2.6.0:compile
> [INFO] +- io.fabric8:openshift-client:jar:1.3.66:compile
> [INFO] |  +- io.fabric8:kubernetes-client:test-jar:tests:1.3.66:compile
> [INFO] |  \- junit:junit:jar:4.11:compile
> [INFO] |     \- org.hamcrest:hamcrest-core:jar:1.3:compile
> [INFO] +- org.apache.camel:camel-test:jar:2.17-SNAPSHOT:test
> [INFO] +- commons-codec:commons-codec:jar:1.10:test
> [INFO] +- org.slf4j:slf4j-api:jar:1.7.13:compile
> [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.13:test
> [INFO] +- log4j:log4j:jar:1.2.17:test
> [INFO] +- org.apache.camel:apt:jar:2.17-SNAPSHOT:provided
> [INFO] |  \- org.apache.camel:spi-annotations:jar:2.17-SNAPSHOT:provided
> [INFO] +- com.sun.xml.bind:jaxb-core:jar:2.2.11:compile
> [INFO] \- com.sun.xml.bind:jaxb-impl:jar:2.2.11:compile
> {code}
> So the karaf features.xml file need to be updated accordingly.



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

Reply via email to