Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-21 Thread David Jencks
I'm not so sure. I wonder if we should make any use of pax-url-aether/mvn optional and resolve mvn urls where the artifact is in system ourselves (any use reference: urls here). This is what startup.properties does now. So for any mvn url we: 1. check system and if found use that artifact

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-21 Thread Guillaume Nodet
I'm not sure. I think using aether has some benefits, but we need to make sure that we can actually control what happens. I guess the real downside is that we need to add maven metadata to the system folder I think. On Wed, Apr 20, 2011 at 22:29, Achim Nierbeck wrote: > oh, I forgot about the mi

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread David Jencks
On Apr 20, 2011, at 2:25 PM, Guillaume Nodet wrote: > I don't have much experience with the reference: url, so I'm not > really sure of the drawbacks. What happens if the file is deleted and > overwritten because aether downloaded a new snapshot instead of the > one that was installed ? That wo

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread Guillaume Nodet
I don't have much experience with the reference: url, so I'm not really sure of the drawbacks. What happens if the file is deleted and overwritten because aether downloaded a new snapshot instead of the one that was installed ? On Wed, Apr 20, 2011 at 22:45, David Jencks wrote: > I don't think t

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread Achim Nierbeck
HI David, comments inline regards, achim I don't think that's a good idea. just thinking :) No one has addressed my other concern that directly using mvn: urls for stuff in system means all feature bundles get copied info the framework. I would like to consider installing bundles in sys

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread David Jencks
I don't think that's a good idea. No one has addressed my other concern that directly using mvn: urls for stuff in system means all feature bundles get copied info the framework. I would like to consider installing bundles in system using reference: urls rather than mvn urls, even if the bundle

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread Achim Nierbeck
oh, I forgot about the minimal one :( the standard one is using it. So do you suggest that we revert to the standard pax-url-mvn bundle to get this snapshot issue resolved? regards, Achim Ah, right, aether behaves differently and does not have this notion of default repositories. I think we

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread Guillaume Nodet
Ah, right, aether behaves differently and does not have this notion of default repositories. I think we may want to fix pax-aether in order to support that. I think it's just about having a custom local repo pointing to system and checking if the artifact can be resolved in that one first. Note

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread Achim Nierbeck
maybe we need to ask toni if he changed something on pax-url-aether that changed this behavior since with 3.0 we use pax-url-aether instead of pax-url-mvn to resolve the dependencies. regards, achim 2011/4/20 Guillaume Nodet : > Yes, that would definitely be a problem. > However, i'm not sure why

Re: features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread Guillaume Nodet
Yes, that would definitely be a problem. However, i'm not sure why it happens. The mvn url handler is configured with system as a default repository which should override any other repository, including the default m2 local repository (and obviously any remote repository). I did that a while ago

features can prefer remote snapshots over ones in system (at least in trunk)

2011-04-20 Thread David Jencks
I discovered that features can pull in snapshots from the apache snapshot repo rather than the ones you carefully installed into system if someone does a deploy of a snapshot between when you assembled the server and started it. I found this behavior very disconcerting and I'm not sure it's what