You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Andrei Pozolotin <an...@gmail.com> on 2013/02/11 18:12:21 UTC
update snapshot dependency?
*Hello,*
I am curious what is the fastest/simplest generic way
to update snapshot dependency in running karaf w/o restart?
it seems difficulty arises from few sources:
* maven resolver in karaf does not check / does not pick up new
snapshot form nexus repo
* karaf/felix bundle loader does not see version change.
Thank you,
Andrei
Re: update snapshot dependency?
Posted by Andrei Pozolotin <an...@gmail.com>.
JB:
-------- Original Message --------
Subject: Re: update snapshot dependency?
From: Jean-Baptiste Onofré <jb...@nanthrax.net>
To: Andrei Pozolotin <an...@gmail.com>
Cc: user@karaf.apache.org
Date: Tue 12 Feb 2013 12:17:52 AM CST
> Hi,
>
> we already have bundle:update.
bundle:update does not fetch new snapshot for me
what am I missing? is there a itest for that?
>
> features:refreshurl updates the description and I plan to add
> features:update (that does uninstall && install).
great. filed
https://issues.apache.org/jira/browse/KARAF-2182
>
> For the dev commands, as I said, it's more a Pax Url new feature (that
> we can leverage).
>
> Regards
> JB
Andrei.
>
> On 02/12/2013 12:41 AM, Andrei Pozolotin wrote:
>> how about this:
>>
>> new "install" commands
>> * bundle:update-snapshots
>> * features:update-snapshots
>>
>> scan all bundle/features, find version ~ SNAPSHOT, pull updates from
>> remote maven repo
>>
>> new "development" commands
>> * dev:update-bundle-snapshots
>> * dev:update-features-snapshots
>>
>> invoke bundle/features update command periodically
>>
>> -------- Original Message --------
>> Subject: Re: update snapshot dependency?
>> From: Jean-Baptiste Onofré <jb...@nanthrax.net>
>> To: user@karaf.apache.org
>> Date: Mon 11 Feb 2013 01:51:00 PM CST
>>> Not "easy" as it depends to pax-url/aether. So it depends what we
>>> really want.
>>>
>>> Regards
>>> JB
>>>
>>> On 02/11/2013 08:13 PM, Andrei Pozolotin wrote:
>>>> should it be a standard option to dev:watch or feature:install?
>>>>
>>>> -------- Original Message --------
>>>> Subject: Re: update snapshot dependency?
>>>> From: Łukasz Dywicki <lu...@code-house.org>
>>>> To: user@karaf.apache.org
>>>> Cc: Achim Nierbeck <bc...@googlemail.com>
>>>> Date: Mon 11 Feb 2013 12:46:09 PM CST
>>>>> Use SSH task to connect Karaf and update necessary bundles. Dev:watch
>>>>> works only with local repository.
>>>>>
>>>>> Cheers,
>>>>> Lukasz
>>>>>
>>>>> Wiadomość napisana przez Andrei Pozolotin <andrei.pozolotin@gmail.com
>>>>> <ma...@gmail.com>> w dniu 11 lut 2013, o godz.
>>>>> 18:41:
>>>>>
>>>>>> ***Achim:**
>>>>>> ***
>>>>>> thanks!
>>>>>>
>>>>>> sorry I was not clear: I need to pick up change form jenkins.
>>>>>>
>>>>>> Andrei
>>>>>>
>>>>>> -------- Original Message --------
>>>>>> Subject: Re: update snapshot dependency?
>>>>>> From: Achim Nierbeck <bc...@googlemail.com>
>>>>>> To: user@karaf.apache.org
>>>>>> Date: Mon 11 Feb 2013 11:14:10 AM CST
>>>>>>> Hi Andrei,
>>>>>>>
>>>>>>> very simple use
>>>>>>> dev:watch [bundle-id]
>>>>>>>
>>>>>>> it'll update your dependency instantly if the new module was placed
>>>>>>> in your local repo.
>>>>>>>
>>>>>>> regards, Achim
>>>>>>>
>>>>>>>
>>>>>>> 2013/2/11 Andrei Pozolotin <andrei.pozolotin@gmail.com
>>>>>>> <ma...@gmail.com>>
>>>>>>>
>>>>>>> *Hello,*
>>>>>>>
>>>>>>> I am curious what is the fastest/simplest generic way
>>>>>>> to update snapshot dependency in running karaf w/o restart?
>>>>>>>
>>>>>>> it seems difficulty arises from few sources:
>>>>>>> * maven resolver in karaf does not check / does not pick up
>>>>>>> new snapshot form nexus repo
>>>>>>> * karaf/felix bundle loader does not see version change.
>>>>>>>
>>>>>>> Thank you,
>>>>>>>
>>>>>>> Andrei
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>>> Committer & Project Lead
>>>>>>> OPS4J Pax for Vaadin
>>>>>>> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter &
>>>>>>> Project Lead
>>>>>>> blog <http://notizblog.nierbeck.de/>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: update snapshot dependency?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
we already have bundle:update.
features:refreshurl updates the description and I plan to add
features:update (that does uninstall && install).
For the dev commands, as I said, it's more a Pax Url new feature (that
we can leverage).
Regards
JB
On 02/12/2013 12:41 AM, Andrei Pozolotin wrote:
> how about this:
>
> new "install" commands
> * bundle:update-snapshots
> * features:update-snapshots
>
> scan all bundle/features, find version ~ SNAPSHOT, pull updates from
> remote maven repo
>
> new "development" commands
> * dev:update-bundle-snapshots
> * dev:update-features-snapshots
>
> invoke bundle/features update command periodically
>
> -------- Original Message --------
> Subject: Re: update snapshot dependency?
> From: Jean-Baptiste Onofré <jb...@nanthrax.net>
> To: user@karaf.apache.org
> Date: Mon 11 Feb 2013 01:51:00 PM CST
>> Not "easy" as it depends to pax-url/aether. So it depends what we
>> really want.
>>
>> Regards
>> JB
>>
>> On 02/11/2013 08:13 PM, Andrei Pozolotin wrote:
>>> should it be a standard option to dev:watch or feature:install?
>>>
>>> -------- Original Message --------
>>> Subject: Re: update snapshot dependency?
>>> From: Łukasz Dywicki <lu...@code-house.org>
>>> To: user@karaf.apache.org
>>> Cc: Achim Nierbeck <bc...@googlemail.com>
>>> Date: Mon 11 Feb 2013 12:46:09 PM CST
>>>> Use SSH task to connect Karaf and update necessary bundles. Dev:watch
>>>> works only with local repository.
>>>>
>>>> Cheers,
>>>> Lukasz
>>>>
>>>> Wiadomość napisana przez Andrei Pozolotin <andrei.pozolotin@gmail.com
>>>> <ma...@gmail.com>> w dniu 11 lut 2013, o godz. 18:41:
>>>>
>>>>> ***Achim:**
>>>>> ***
>>>>> thanks!
>>>>>
>>>>> sorry I was not clear: I need to pick up change form jenkins.
>>>>>
>>>>> Andrei
>>>>>
>>>>> -------- Original Message --------
>>>>> Subject: Re: update snapshot dependency?
>>>>> From: Achim Nierbeck <bc...@googlemail.com>
>>>>> To: user@karaf.apache.org
>>>>> Date: Mon 11 Feb 2013 11:14:10 AM CST
>>>>>> Hi Andrei,
>>>>>>
>>>>>> very simple use
>>>>>> dev:watch [bundle-id]
>>>>>>
>>>>>> it'll update your dependency instantly if the new module was placed
>>>>>> in your local repo.
>>>>>>
>>>>>> regards, Achim
>>>>>>
>>>>>>
>>>>>> 2013/2/11 Andrei Pozolotin <andrei.pozolotin@gmail.com
>>>>>> <ma...@gmail.com>>
>>>>>>
>>>>>> *Hello,*
>>>>>>
>>>>>> I am curious what is the fastest/simplest generic way
>>>>>> to update snapshot dependency in running karaf w/o restart?
>>>>>>
>>>>>> it seems difficulty arises from few sources:
>>>>>> * maven resolver in karaf does not check / does not pick up
>>>>>> new snapshot form nexus repo
>>>>>> * karaf/felix bundle loader does not see version change.
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>> Andrei
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>> Committer & Project Lead
>>>>>> OPS4J Pax for Vaadin
>>>>>> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter &
>>>>>> Project Lead
>>>>>> blog <http://notizblog.nierbeck.de/>
>>>>>
>>>>
>>>
>>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: update snapshot dependency?
Posted by Andrei Pozolotin <an...@gmail.com>.
how about this:
new "install" commands
* bundle:update-snapshots
* features:update-snapshots
scan all bundle/features, find version ~ SNAPSHOT, pull updates from
remote maven repo
new "development" commands
* dev:update-bundle-snapshots
* dev:update-features-snapshots
invoke bundle/features update command periodically
-------- Original Message --------
Subject: Re: update snapshot dependency?
From: Jean-Baptiste Onofré <jb...@nanthrax.net>
To: user@karaf.apache.org
Date: Mon 11 Feb 2013 01:51:00 PM CST
> Not "easy" as it depends to pax-url/aether. So it depends what we
> really want.
>
> Regards
> JB
>
> On 02/11/2013 08:13 PM, Andrei Pozolotin wrote:
>> should it be a standard option to dev:watch or feature:install?
>>
>> -------- Original Message --------
>> Subject: Re: update snapshot dependency?
>> From: Łukasz Dywicki <lu...@code-house.org>
>> To: user@karaf.apache.org
>> Cc: Achim Nierbeck <bc...@googlemail.com>
>> Date: Mon 11 Feb 2013 12:46:09 PM CST
>>> Use SSH task to connect Karaf and update necessary bundles. Dev:watch
>>> works only with local repository.
>>>
>>> Cheers,
>>> Lukasz
>>>
>>> Wiadomość napisana przez Andrei Pozolotin <andrei.pozolotin@gmail.com
>>> <ma...@gmail.com>> w dniu 11 lut 2013, o godz. 18:41:
>>>
>>>> ***Achim:**
>>>> ***
>>>> thanks!
>>>>
>>>> sorry I was not clear: I need to pick up change form jenkins.
>>>>
>>>> Andrei
>>>>
>>>> -------- Original Message --------
>>>> Subject: Re: update snapshot dependency?
>>>> From: Achim Nierbeck <bc...@googlemail.com>
>>>> To: user@karaf.apache.org
>>>> Date: Mon 11 Feb 2013 11:14:10 AM CST
>>>>> Hi Andrei,
>>>>>
>>>>> very simple use
>>>>> dev:watch [bundle-id]
>>>>>
>>>>> it'll update your dependency instantly if the new module was placed
>>>>> in your local repo.
>>>>>
>>>>> regards, Achim
>>>>>
>>>>>
>>>>> 2013/2/11 Andrei Pozolotin <andrei.pozolotin@gmail.com
>>>>> <ma...@gmail.com>>
>>>>>
>>>>> *Hello,*
>>>>>
>>>>> I am curious what is the fastest/simplest generic way
>>>>> to update snapshot dependency in running karaf w/o restart?
>>>>>
>>>>> it seems difficulty arises from few sources:
>>>>> * maven resolver in karaf does not check / does not pick up
>>>>> new snapshot form nexus repo
>>>>> * karaf/felix bundle loader does not see version change.
>>>>>
>>>>> Thank you,
>>>>>
>>>>> Andrei
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>> Committer & Project Lead
>>>>> OPS4J Pax for Vaadin
>>>>> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter &
>>>>> Project Lead
>>>>> blog <http://notizblog.nierbeck.de/>
>>>>
>>>
>>
>
Re: update snapshot dependency?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Not "easy" as it depends to pax-url/aether. So it depends what we really
want.
Regards
JB
On 02/11/2013 08:13 PM, Andrei Pozolotin wrote:
> should it be a standard option to dev:watch or feature:install?
>
> -------- Original Message --------
> Subject: Re: update snapshot dependency?
> From: Łukasz Dywicki <lu...@code-house.org>
> To: user@karaf.apache.org
> Cc: Achim Nierbeck <bc...@googlemail.com>
> Date: Mon 11 Feb 2013 12:46:09 PM CST
>> Use SSH task to connect Karaf and update necessary bundles. Dev:watch
>> works only with local repository.
>>
>> Cheers,
>> Lukasz
>>
>> Wiadomość napisana przez Andrei Pozolotin <andrei.pozolotin@gmail.com
>> <ma...@gmail.com>> w dniu 11 lut 2013, o godz. 18:41:
>>
>>> ***Achim:**
>>> ***
>>> thanks!
>>>
>>> sorry I was not clear: I need to pick up change form jenkins.
>>>
>>> Andrei
>>>
>>> -------- Original Message --------
>>> Subject: Re: update snapshot dependency?
>>> From: Achim Nierbeck <bc...@googlemail.com>
>>> To: user@karaf.apache.org
>>> Date: Mon 11 Feb 2013 11:14:10 AM CST
>>>> Hi Andrei,
>>>>
>>>> very simple use
>>>> dev:watch [bundle-id]
>>>>
>>>> it'll update your dependency instantly if the new module was placed
>>>> in your local repo.
>>>>
>>>> regards, Achim
>>>>
>>>>
>>>> 2013/2/11 Andrei Pozolotin <andrei.pozolotin@gmail.com
>>>> <ma...@gmail.com>>
>>>>
>>>> *Hello,*
>>>>
>>>> I am curious what is the fastest/simplest generic way
>>>> to update snapshot dependency in running karaf w/o restart?
>>>>
>>>> it seems difficulty arises from few sources:
>>>> * maven resolver in karaf does not check / does not pick up
>>>> new snapshot form nexus repo
>>>> * karaf/felix bundle loader does not see version change.
>>>>
>>>> Thank you,
>>>>
>>>> Andrei
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> Committer & Project Lead
>>>> OPS4J Pax for Vaadin
>>>> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter &
>>>> Project Lead
>>>> blog <http://notizblog.nierbeck.de/>
>>>
>>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: update snapshot dependency?
Posted by Andrei Pozolotin <an...@gmail.com>.
should it be a standard option to dev:watch or feature:install?
-------- Original Message --------
Subject: Re: update snapshot dependency?
From: Łukasz Dywicki <lu...@code-house.org>
To: user@karaf.apache.org
Cc: Achim Nierbeck <bc...@googlemail.com>
Date: Mon 11 Feb 2013 12:46:09 PM CST
> Use SSH task to connect Karaf and update necessary bundles. Dev:watch
> works only with local repository.
>
> Cheers,
> Lukasz
>
> Wiadomość napisana przez Andrei Pozolotin <andrei.pozolotin@gmail.com
> <ma...@gmail.com>> w dniu 11 lut 2013, o godz. 18:41:
>
>> ***Achim:**
>> ***
>> thanks!
>>
>> sorry I was not clear: I need to pick up change form jenkins.
>>
>> Andrei
>>
>> -------- Original Message --------
>> Subject: Re: update snapshot dependency?
>> From: Achim Nierbeck <bc...@googlemail.com>
>> To: user@karaf.apache.org
>> Date: Mon 11 Feb 2013 11:14:10 AM CST
>>> Hi Andrei,
>>>
>>> very simple use
>>> dev:watch [bundle-id]
>>>
>>> it'll update your dependency instantly if the new module was placed
>>> in your local repo.
>>>
>>> regards, Achim
>>>
>>>
>>> 2013/2/11 Andrei Pozolotin <andrei.pozolotin@gmail.com
>>> <ma...@gmail.com>>
>>>
>>> *Hello,*
>>>
>>> I am curious what is the fastest/simplest generic way
>>> to update snapshot dependency in running karaf w/o restart?
>>>
>>> it seems difficulty arises from few sources:
>>> * maven resolver in karaf does not check / does not pick up
>>> new snapshot form nexus repo
>>> * karaf/felix bundle loader does not see version change.
>>>
>>> Thank you,
>>>
>>> Andrei
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> Committer & Project Lead
>>> OPS4J Pax for Vaadin
>>> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter &
>>> Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>
>
Re: update snapshot dependency?
Posted by Łukasz Dywicki <lu...@code-house.org>.
Use SSH task to connect Karaf and update necessary bundles. Dev:watch works only with local repository.
Cheers,
Lukasz
Wiadomość napisana przez Andrei Pozolotin <an...@gmail.com> w dniu 11 lut 2013, o godz. 18:41:
> Achim:
>
> thanks!
>
> sorry I was not clear: I need to pick up change form jenkins.
>
> Andrei
> -------- Original Message --------
> Subject: Re: update snapshot dependency?
> From: Achim Nierbeck <bc...@googlemail.com>
> To: user@karaf.apache.org
> Date: Mon 11 Feb 2013 11:14:10 AM CST
>> Hi Andrei,
>>
>> very simple use
>> dev:watch [bundle-id]
>>
>> it'll update your dependency instantly if the new module was placed in your local repo.
>>
>> regards, Achim
>>
>>
>> 2013/2/11 Andrei Pozolotin <an...@gmail.com>
>> Hello,
>>
>> I am curious what is the fastest/simplest generic way
>> to update snapshot dependency in running karaf w/o restart?
>>
>> it seems difficulty arises from few sources:
>> * maven resolver in karaf does not check / does not pick up new snapshot form nexus repo
>> * karaf/felix bundle loader does not see version change.
>>
>> Thank you,
>>
>> Andrei
>>
>>
>>
>>
>> --
>>
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
>> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>
Re: update snapshot dependency?
Posted by Andrei Pozolotin <an...@gmail.com>.
***Achim:**
***
thanks!
sorry I was not clear: I need to pick up change form jenkins.
Andrei
-------- Original Message --------
Subject: Re: update snapshot dependency?
From: Achim Nierbeck <bc...@googlemail.com>
To: user@karaf.apache.org
Date: Mon 11 Feb 2013 11:14:10 AM CST
> Hi Andrei,
>
> very simple use
> dev:watch [bundle-id]
>
> it'll update your dependency instantly if the new module was placed in
> your local repo.
>
> regards, Achim
>
>
> 2013/2/11 Andrei Pozolotin <andrei.pozolotin@gmail.com
> <ma...@gmail.com>>
>
> *Hello,*
>
> I am curious what is the fastest/simplest generic way
> to update snapshot dependency in running karaf w/o restart?
>
> it seems difficulty arises from few sources:
> * maven resolver in karaf does not check / does not pick up
> new snapshot form nexus repo
> * karaf/felix bundle loader does not see version change.
>
> Thank you,
>
> Andrei
>
>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> OPS4J Pax for Vaadin
> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project
> Lead
> blog <http://notizblog.nierbeck.de/>
Re: update snapshot dependency?
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Andrei,
very simple use
dev:watch [bundle-id]
it'll update your dependency instantly if the new module was placed in your
local repo.
regards, Achim
2013/2/11 Andrei Pozolotin <an...@gmail.com>
> *Hello,*
>
> I am curious what is the fastest/simplest generic way
> to update snapshot dependency in running karaf w/o restart?
>
> it seems difficulty arises from few sources:
> * maven resolver in karaf does not check / does not pick up new snapshot
> form nexus repo
> * karaf/felix bundle loader does not see version change.
>
> Thank you,
>
> Andrei
>
>
--
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>