A few comments:
  * snapshots can be updated on the fly in a dev environment using "dev:watch *"
  * you don't need to use removeurl / addurl, use refreshurl instead
  * refreshurl won't update the features and won't download anything, so
      if your features definitions haven't changed, there's no reason to do that
  * uninstall / install should download the new snapshots using the
mvn url handler

However, the mvn url handler is sometimes limited, so snapshots are
found in that order:
  * [karaf.home]/system : if any bundle is found here, it will be
always used, even if it's older
  * the mvn url handler will try to find possible locations, but I
don't think it handle timestamps
    well enough

In order to fix your problem, you may want to replace the pax-url-mvn
bundle with pax-url-aether
which uses the real maven api and should be closer to the maven
behavior.   However, maven
does not try to download snapshots every time, and you need to
configure your repository to
specifiy a small period of time instead of only checking once a day.

As discussed some time ago (iirc), another way may be to enhance the
dev:watch command to
allow checking remote repositories (it currently only works with the
local repo).

On Fri, Apr 15, 2011 at 05:40, Dan Tran <[email protected]> wrote:
> I have a use case where I regularly, issue
>
>  feature:uninstall
>  feature:removeurl  <==== I would expect all cache relate to my
> feature would disappear after this call
>  feature:addurl
>  feature:install
>
> On the same snapshot version
>
> However, It seems Karaf caches my feature and bundle and it does NOT
> download my latest snapshot.  I can tell the bundle ID does not change
> after new install.
>
>  is it a bug?
>
> Thanks
>
> -Dan
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com/

Reply via email to