Thanks, JB.
Actually I did discover this, but failed to report :)
You’re right, watching local repositories works ok, and I believe I can
explicitly fetch bundles from remote repos (maybe using cellar features).
Best regards,
Pavel
> On 8 Nov 2023, at 20:24, Jean-Baptiste Onofré <[email protected]> wrote:
>
> Hi,
>
> Do you want to watch remote repositories ?
> Currently, Karaf is only to watch local repository. We have a Jira about that.
>
> Regards
> JB
>
> On Thu, Nov 2, 2023 at 2:55 PM Pavel Perikov <[email protected]> wrote:
>>
>> I’d like to comment on what my goal is.
>>
>> I’d like to have a bunch of Karaf instances running in a cluster watching
>> the development repo for new -SNAPSHOT bundles and updating the bundle as
>> newer snapshot is available. I’m currently out of ideas. It seems that since
>> the bundle is installed it is cached in local repo. And there’s no way at
>> all to update this bundle because it is always present in local repository
>> and the dev repo is never checked.
>>
>>
>>
>> On 2 Nov 2023, at 16:01, Pavel Perikov <[email protected]> wrote:
>>
>> Hi everybody.
>>
>> I’m using apache karaf-4.4.4.
>>
>> In clean configuration I made a single modification to
>>
>> org.ops4j.pax.url.mvn.repositories= \
>> http://beelink:4000/snapshots@id=perikov@snapshots@noreleases, \
>>
>> to add my own repository.
>>
>> Then I install the bundle org.name.0.1.0-SNAPSHOT from this repository.
>>
>> It seems like the bundle immediately gets cached to local ~/.m2 repo and
>> there’s no way to get newer snapshot.
>>
>> Neither bundle:update nor bundle:watch nor bundle:uninstall/bundle:install
>> again do not work (they use local repository, getting the old version).
>>
>> The only way to go is to delete the bundle from the local repo.
>>
>> Is there a way to get the correct behaviour (preferably the bundle should
>> get updated via bundle:watch)?
>>
>> Best regards,
>> Pavel
>>
>>