Karaf Bundle picking up some old dependency
<p>In one of my bundle in Karaf I am having a dependency as mentioned below:-</p>

<pre><code>&lt;dependency&gt;
   &lt;groupId&gt;com.github.arnabk&lt;/groupId&gt;
   &lt;artifactId&gt;java-dogstatsd-client&lt;/artifactId&gt;
   &lt;version&gt;1.0.1&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>Then I updated the version of <code>java-dogstatsd-client</code> to <code>1.0.3</code> in <code>pom.xml</code>. Created the bundle.I am using a <code>KAR</code> packaging but after placing the bundle in Karaf. I am seeing it is importing version 1.0.1 of the library. However everything works as expected if I place my bundle with 1.0.3 version of <code>java-dogstatsd-client</code> in a fresh Karaf instance. Below is the import I am seeing from Karaf web console:-</p>

<pre><code>com.github.arnabk.statsd,version=0.0.0 from wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1 (262)
com.mysql.jdbc,version=0.0.0 from wrap_mvn_mysql_mysql-connector-java_5.1.6 (270)
com.sun.jna,version=0.0.0 from com.sun.jna (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)
</code></pre>

<p>Also checking <code>bundle:list</code> I am seeing version 1.0.1 of the bundle:-</p>

<pre><code>karaf@root&gt;bundle:list | grep dog*
262 | Active |  80 | 0                                  | wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
</code></pre>

<p>Because my bundle is picking version 1.0.1 of the dogstatsd client I am getting <code>Method Not Found Error</code></p>

<p>Can some one please let me know:-</p>

<ol>
<li>Why dogstatsd-client 1.0.1 is getting installed even though I have
mentioned 1.0.3 in pom.xml? </li>
<li>How can I make my bundle install and use version 1.0.3 version of dogstatsd-client?</li>
</ol>

<p>Environment:-</p>

<ul>
<li>Karaf - 3.0.5</li>
<li>Servicemix - 6.1.0</li>
</ul>