0 Replies Latest reply on Jan 29, 2014 1:27 PM by gnuspider

    Fab installation and dependencies resolution

    gnuspider

      Hi,

       

      I'm trying to install a bundle with a dependency to com.google.code.gson/gson/2.2.4. However when starting the bundle, I get the following message:

       

      Error executing command: Error starting bundles:
        Unable to start bundle 242: Unresolved constraint in bundle gopressComponants [242]: Unable to resolve 242.0: missing requirement [242.0] osgi.wiring.package; (&(osgi.wiring.package=com.google.gson)(version>=2.2.0)(!(version>=3.0.0)))
      

       

      The bundle installation is done with the command:

      install fab:mvn:com.audaxis.gopress/gopressComponants/0.0.2-SNAPSHOT
      

       

      The bundle MANIFEST.MF file is as follow:

      Manifest-Version: 1.0
      Bnd-LastModified: 1391018962398
      Build-Jdk: 1.7.0_45
      Built-By: david
      Bundle-ManifestVersion: 2
      Bundle-Name: Camel Checksum Component
      Bundle-SymbolicName: gopressComponants
      Bundle-Version: 0.0.2.SNAPSHOT
      Created-By: Apache Maven Bundle Plugin
      Export-Package: com.audaxis.camel.components;version="0.0.2.SNAPSHOT",co
       m.audaxis.camel.components.backup;uses:="org.apache.camel.impl,org.apac
       he.camel,org.slf4j,org.apache.camel.util";version="0.0.2.SNAPSHOT",com.
       audaxis.camel.components.checksum;uses:="org.apache.camel.impl,org.apac
       he.camel.util,org.apache.camel,org.slf4j,org.apache.commons.codec.binar
       y,org.apache.camel.spi";version="0.0.2.SNAPSHOT",com.audaxis.camel.comp
       onents.comparechks;uses:="org.apache.camel.util,org.apache.camel.compon
       ent.mongodb,org.apache.camel,com.mongodb,org.slf4j,com.audaxis.camel.co
       mponents.checksum,com.audaxis.camel.components,com.audaxis.camel.gopres
       s.components.gpregistration";version="0.0.2.SNAPSHOT",com.audaxis.camel
       .components.pdfnet;uses:="org.apache.camel.util,org.apache.camel,org.ap
       ache.camel.component.exec,com.audaxis.camel.components,org.apache.pdfbo
       x.pdmodel.common,org.apache.pdfbox.pdmodel,org.slf4j";version="0.0.2.SN
       APSHOT",com.audaxis.camel.components.unzip;uses:="org.apache.camel.impl
       ,org.apache.camel.util,org.apache.camel,org.slf4j,com.audaxis.camel.gop
       ress.components.gpregistration,org.apache.commons.io";version="0.0.2.SN
       APSHOT",com.audaxis.camel.components.wordsextractor;uses:="org.apache.c
       amel.component.mongodb,org.apache.camel,com.audaxis.camel.gopress.utils
       ,org.apache.camel.util,org.bson,com.audaxis.camel.components,com.audaxi
       s.camel.gopress.components.gpregistration,com.mongodb,com.audaxis.camel
       .gopress.components.common,org.slf4j";version="0.0.2.SNAPSHOT",com.auda
       xis.camel.gopress.components.common;version="0.0.2.SNAPSHOT",com.audaxi
       s.camel.gopress.components.dictionary;uses:="org.apache.camel.component
       .mongodb,com.audaxis.camel.components,org.apache.camel,com.mongodb,org.
       apache.camel.util,org.bson,org.bson.types,com.audaxis.camel.gopress.com
       ponents.gpregistration,org.apache.commons.io,javax.xml.parsers,org.w3c.
       dom,com.audaxis.camel.gopress.components.common,org.slf4j";version="0.0
       .2.SNAPSHOT",com.audaxis.camel.gopress.components.fullbuilder;uses:="or
       g.apache.camel.util,org.apache.camel.component.mongodb,com.audaxis.came
       l.gopress.components.common,org.apache.camel,com.mongodb,org.slf4j,com.
       audaxis.camel.components,javax.xml.parsers,javax.xml.transform.dom,org.
       w3c.dom,org.bson,org.bson.types,com.audaxis.camel.gopress.components.gp
       registration,javax.xml.transform,javax.xml.transform.stream,org.apache.
       commons.io";version="0.0.2.SNAPSHOT",com.audaxis.camel.gopress.componen
       ts.gpregistration;uses:="org.apache.camel.component.mongodb,org.apache.
       camel,org.apache.camel.util,org.bson,com.audaxis.camel.components,com.m
       ongodb,org.slf4j,org.bson.types,com.audaxis.camel.components.comparechk
       s,com.audaxis.camel.gopress.utils,com.mongodb.util,org.apache.camel.imp
       l,com.audaxis.camel.gopress.components.common";version="0.0.2.SNAPSHOT"
       ,com.audaxis.camel.gopress.models;version="0.0.2.SNAPSHOT",com.audaxis.
       camel.gopress.utils;uses:="com.audaxis.camel.gopress.components.gpregis
       tration,com.audaxis.camel.gopress.models,com.google.gson.stream,com.goo
       gle.gson,org.apache.camel.util,org.jsoup,org.apache.tika.parser.pdf,org
       .apache.tika.sax,org.xml.sax,org.apache.tika.metadata,org.apache.tika.p
       arser,org.jsoup.nodes,org.apache.commons.io,org.apache.tika.exception,c
       om.audaxis.camel.components,javax.xml.transform,org.apache.camel,javax.
       xml.transform.stream,javax.xml.transform.dom,org.w3c.dom";version="0.0.
       2.SNAPSHOT"
      Import-Package: com.google.gson;version="[2.2,3)",com.google.gson.stream
       ;version="[2.2,3)",com.mongodb;version="[2.9,3)",com.mongodb.util;versi
       on="[2.9,3)",javax.xml.parsers,javax.xml.transform,javax.xml.transform.
       dom,javax.xml.transform.stream,org.apache.camel;version="[2.10,3)",org.
       apache.camel.component.exec;version="[2.10,3)",org.apache.camel.compone
       nt.mongodb;version="[2.10,3)",org.apache.camel.impl;version="[2.10,3)",
       org.apache.camel.spi;version="[2.10,3)",org.apache.camel.util;version="
       [2.10,3)",org.apache.commons.codec.binary;version="[1.5,2)",org.apache.
       commons.io;version="[1.4,2)",org.apache.pdfbox.pdmodel;version="[1.8,2)
       ",org.apache.pdfbox.pdmodel.common;version="[1.8,2)",org.apache.tika.ex
       ception;version="[1.0,2)",org.apache.tika.metadata;version="[1.0,2)",or
       g.apache.tika.parser;version="[1.0,2)",org.apache.tika.parser.pdf,org.a
       pache.tika.sax;version="[1.0,2)",org.bson;version="[2.9,3)",org.bson.ty
       pes;version="[2.9,3)",org.jsoup;version="[1.7,2)",org.jsoup.nodes;versi
       on="[1.7,2)",org.slf4j;version="[1.6,2)",org.w3c.dom,org.xml.sax
      Tool: Bnd-1.50.0
      

       

      The gson jar is well located in the local maven repository.

       

      Any idea, why the dependencies are not automatically installed ?

       

      Thanks