pom.xml is here
<https://gist.github.com/debraj-manna/5823bbea96c610c69a015ccd679b381a>.
feature.xml is here
<https://gist.github.com/debraj-manna/6e96d638e4797a1e4e223c455f7500e2>.

There are no other installation which brings this version of library.



On Sat, Jul 2, 2016 at 12:04 PM, Christian Schneider <
[email protected]> wrote:

> I guess the pom you mention is the pom of your bundle. This is only the
> compile time dependency.
> In OSGi by default your import will allow any bugfix version of the same
> minor version. So it will create an import for the package with range
> [1.0,2).
>
> The important thing is the feature file of your kar now. It seems you
> install the 1.0.1 version of the bundle there.
>
> Can you post a small example somewhere or at least the full pom and
> feature.xml?
>
> Do you maybe have other installations in the framework that bring in the
> 1.0.1 version?
>
> Christian
>
> 2016-07-01 22:40 GMT+02:00 Debraj Manna <[email protected]>:
>
>> I tried adding the dependency in features.xml. But still same issue. Any
>> thoughts?
>>
>> On Jul 1, 2016 7:37 PM, "Debraj Manna" <[email protected]> wrote:
>>
>> Hi
>>
>> In one of my bundle I am having a dependency mentioned below:-
>>
>> <dependency>
>>
>>   <groupId>com.github.arnabk</groupId>
>>
>>   <artifactId>java-dogstatsd-client</artifactId>
>>
>>   <version>1.0.3</version>
>>
>> </dependency>
>>
>>
>> I am using a KAR packaging but after placing the bundle in Karaf. I am
>> seeing it is importing version 1.0.1 of the library. Below is the import I
>> am seeing from Karaf web console:-
>>
>>
>> com.github.arnabk.statsd,version=0.0.0 from 
>> wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
>> (262) <http://localhost:8181/system/console/bundles/262>
>> com.mysql.jdbc,version=0.0.0 from wrap_mvn_mysql_mysql-connector-java_5.1.6
>> (270) <http://localhost:8181/system/console/bundles/270>
>> com.sun.jna,version=0.0.0 from com.sun.jna (264)
>> <http://localhost:8181/system/console/bundles/264> -- Overwritten by
>> Boot Delegation
>> com.timgroup.statsd,version=0.0.0 from 
>> wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
>> (262) <http://localhost:8181/system/console/bundles/262>
>>
>>
>> Also checking bundle:list I am seeing version 1.0.1 of the bundle
>>
>>
>> *karaf@root*>bundle:list | grep dog*
>>
>> 262 | Active |  80 | 0                                  |
>> wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
>>
>>
>> Because my bundle is picking version 1.0.1 of the dogstatsd client I am
>> getting "Method Not Found Error"
>>
>>
>> Can some one please let me know:-
>>
>>
>>    1. Why dogstatsd-client 1.0.1 is getting installed even though I have
>>    mentioned 1.0.3 in pom.xml?
>>    2. How can I make my bundle install and use version 1.0.3 version of
>>    dogstatsd-client?
>>
>>
>>
>>
>>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
> <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>
>
> Open Source Architect
> http://www.talend.com
> <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
>

Reply via email to