You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Matthias Leinweber <Ma...@IDA-Analytics.de> on 2019/03/22 09:05:20 UTC

Aether SNAPSHOT Update

Hello Karaf Team,


i have the following situation:
I am building a karaf assambly (4.2.4) (during development .. snapshot versions) and i can not update bundles from my local m2 repo.
If i completely disable org.ops4j.pax.url.mvn.defaultRepositories (everything should be installed from my local .m2 repo) the update functionality works.

Where is my mistake?  Where do i configure to look into my local .m2 if a snapshot version is present in my karaf internal repos?


best regards

Matthias

AW: Aether SNAPSHOT Update

Posted by Matthias Leinweber <Ma...@IDA-Analytics.de>.
Interesting ...
I set org.ops4j.pax.url.mvn.defaultRepositories= *to empty*
org.ops4j.pax.url.mvn.localRepository= isundefined (#)
globalUpdatePolicy and globalChecksumPolicy are undefined

I thought so too, that karaf checks all repositories for bundle:update/watch but somehow with org.ops4j.pax.url.mvn.defaultRepositories= set to empty it works otherwise not. I pretty convinced that i have a mistake somewhere...
Could it be that i did something wrong in the assembly?

kr


________________________________
Von: Jean-Baptiste Onofré <jb...@nanthrax.net>
Gesendet: Freitag, 22. März 2019 10:33:44
An: user@karaf.apache.org
Betreff: Re: Aether SNAPSHOT Update

You can't completely remove the defaultRepositories because it's where
you have the system folder containing some core bundles.

Do you have all bundles from system folder in your .m2 ?

Do you have localRepository defined ? If yes, is it different from your
.m2/repository ?

Anyway, by default, Karaf systematically checks your .m2/repository for
new SNAPSHOT (it's what we use in the bundle watcher for instance).

Do you have globalUpdatePolicy and globalChecksumPolicy defined ?

Regards
JB

On 22/03/2019 10:05, Matthias Leinweber wrote:
> Hello Karaf Team,
>
>
> i have the following situation:
> I am building a karaf assambly (4.2.4) (during development .. snapshot
> versions) and i can not update bundles from my local m2 repo.
> If i completely disable org.ops4j.pax.url.mvn.defaultRepositories
> (everything should be installed from my local .m2 repo) the update
> functionality works.
>
> Where is my mistake?  Where do i configure to look into my local .m2 if
> a snapshot version is present in my karaf internal repos?
>
>
> best regards
>
> Matthias
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Aether SNAPSHOT Update

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You can't completely remove the defaultRepositories because it's where
you have the system folder containing some core bundles.

Do you have all bundles from system folder in your .m2 ?

Do you have localRepository defined ? If yes, is it different from your
.m2/repository ?

Anyway, by default, Karaf systematically checks your .m2/repository for
new SNAPSHOT (it's what we use in the bundle watcher for instance).

Do you have globalUpdatePolicy and globalChecksumPolicy defined ?

Regards
JB

On 22/03/2019 10:05, Matthias Leinweber wrote:
> Hello Karaf Team,
> 
> 
> i have the following situation:
> I am building a karaf assambly (4.2.4) (during development .. snapshot
> versions) and i can not update bundles from my local m2 repo.
> If i completely disable org.ops4j.pax.url.mvn.defaultRepositories
> (everything should be installed from my local .m2 repo) the update
> functionality works.
> 
> Where is my mistake?  Where do i configure to look into my local .m2 if
> a snapshot version is present in my karaf internal repos?
> 
> 
> best regards
> 
> Matthias
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com