Karaf-4.0.7 bundle:watch issue

2016-11-22 Thread Erwin Hogeweg
Hi, Is there a reason why bundle:watch won’t work in the following scenario? - Install and start SNAPSHOT bundle from maven. - execute bundle:'watch —start ' - rebuild bundle with ‘clean install’ Expect bundle to be updated, but nothing happens… (Executing 'update ' does load the new version….)

Re: Karaf-4.0.7 bundle:watch issue

2016-11-22 Thread Jean-Baptiste Onofré
Hi Erwin, I guess your SNAPSHOT is on a remote repo. For now, watch just works with SNAPSHOT updated in your local .m2/repository. Regards JB On 11/23/2016 12:13 AM, Erwin Hogeweg wrote: Hi, Is there a reason why bundle:watch won’t work in the following scenario? - Install and start SNAPSH

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Erwin Hogeweg
JB, > I guess your SNAPSHOT is on a remote repo. Nope, local. > For now, watch just works with SNAPSHOT updated in your local .m2/repository. That's where it is. Erwin > > Regards > JB > >> On 11/23/2016 12:13 AM, Erwin Hogeweg wrote: >> Hi, >> >> Is there a reason why bundle:watch won’t

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Jean-Baptiste Onofré
Hmmm, and I guess that it contains SNAPSHOT in the version, right ? Let me try to reproduce ? Regards JB On 11/23/2016 10:11 AM, Erwin Hogeweg wrote: JB, I guess your SNAPSHOT is on a remote repo. Nope, local. For now, watch just works with SNAPSHOT updated in your local .m2/repository.

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Christian Schneider
Never tried this style. Do you have any issues when just using bundle:watch * Christian On 23.11.2016 00:13, Erwin Hogeweg wrote: Hi, Is there a reason why bundle:watch won’t work in the following scenario? - Install and start SNAPSHOT bundle from maven. - execute bundle:'watch —start ' - re

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Jean-Baptiste Onofré
By the way, the watcher is based on the mvn regex by default. I have to check the bundle ID matching (I remember I did something around that while ago). Regards JB On 11/23/2016 10:11 AM, Erwin Hogeweg wrote: JB, I guess your SNAPSHOT is on a remote repo. Nope, local. For now, watch ju

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Erwin Hogeweg
Christian, > Do you have any issues when just using bundle:watch * Yes, same issue. Erwin > > Christian > > On 23.11.2016 00:13, Erwin Hogeweg wrote: >> Hi, >> >> Is there a reason why bundle:watch won’t work in the following scenario? >> >> - Install and start SNAPSHOT bundle from maven. >>

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Erwin Hogeweg
JB, > Hmmm, and I guess that it contains SNAPSHOT in the version, right ? Correct. bundle:watch * Watched URLs/IDs: * karaf@root>bundle:watch --start Starting watch Watched URLs/IDs: * karaf@root>la START LEVEL 100 , List Threshold: 0 ID | State| Lvl | Version | Name

Re: Karaf-4.0.7 bundle:watch issue

2016-11-23 Thread Erwin Hogeweg
JB, > I guess your SNAPSHOT is on a remote repo. For now, watch just works with > SNAPSHOT updated in your local .m2/repository. Are you sure that only SNAPSHOT bundles are watched? If I look in the BundleWatchImpl class I see this: ... for (String bundleURL : watchURLs) { // Transform into r

Re: Karaf-4.0.7 bundle:watch issue - SOLVED

2016-11-24 Thread Erwin Hogeweg
P…. Of course this was a USER error. The bundle filename contained SNAPSHOT, but I had the bundle installed without version, just group and artifact ID… so is wasn’t picked up in the BundleWatcherImpl.isMavenSnapshotUrl() call. After installing it with the /1.0.0-SNAPSHOT included, the wa

Re: Karaf-4.0.7 bundle:watch issue - SOLVED

2016-11-24 Thread Jean-Baptiste Onofré
Hi Erwin, good you found your problem ;) Thanks for the update. Regards JB On 11/24/2016 04:10 PM, Erwin Hogeweg wrote: P…. Of course this was a USER error. The bundle filename contained SNAPSHOT, but I had the bundle installed without version, just group and artifact ID… so is wasn’t p