|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Snapshots won't sync with shadow repositoryWe have a configuration whereby we have a local shadow
repository of a hosted repository (over VPN). The reason for this is to prevent
developers from having to download large amounts of data over the VPN
connection which is relatively slow (obviously!). Is this the right use of a
proxy (shadow) repository? Would a mirror be better suited in these
circumstances? The proxy approach has been working fine for the last week
or so. Today, for some odd reason, the proxy repository has stopped syncing
automatically with the hosted repository. I tried setting up a scheduled task to
sync the two (and having it run every 5 minutes) but it still doesn’t
work. The proxy is out of sync with the hosted repository which is causing a
lot of broken builds. Any suggestions why this is happening? Gaurav Gaurav Arora 4th Floor, Tower B, Logix Cyber Park, Plot C - 28 & 29, Sector - 62, Noida - 201 301, Uttar Pradesh, INDIA G.Arora@... *********************************************** *********************************************** |
|
|
Re: Snapshots won't sync with shadow repositoryUm,
I think we have some terminology mixup: i believe you mean "proxy" repositories, not "shadow" repository.... Shadows are something completely different, not needed in this scenario.
This approach you have is fine, except that proxy repo is a _proxy_, not a _mirror_. Hence, it will go remote and fetch what it needs on demand only.There is no notion of syncing between proxy and it's remote target repo.
Thanks, ~t~
On Tue, Sep 29, 2009 at 5:12 PM, Gaurav Arora <G.Arora@...> wrote:
|
|
|
Re: Snapshots won't sync with shadow repositoryTamas,
You're right, I have the terminology mixed up. Let me explain what exactly is happening, the hosted snapshot repository shows that the latest build is from today. When I browse the proxy repository for the same build, it shows that it is from yesterday, perfectly valid. Now when I run maven tests, shouldn't the proxy check the remote for updated builds, download them and send those to me? Thanks, Gaurav
|
|
|
Re: Snapshots won't sync with shadow repositoryYes, it should download them, _unless_ your "Expiration settings" are preventing it. Try lowering the Max Ages for artifacts and metadata. Release and snapshot repositories do need different settings though!
Hope helps, ~t~
On Tue, Sep 29, 2009 at 5:40 PM, GauravArora <gauravsworld@...> wrote:
|
|
|
Re: Snapshots won't sync with shadow repositoryI lowered the artifact max age and metadata ages to 2 minutes. Doesn't work. There are also no exceptions in the log. Only if I run maven with -U does it get all the latest dependencies. :(
|
|
|
Re: Snapshots won't sync with shadow repositoryOh, well it is maven CLI, that also "remembers" when to check for remote stuff... modify your settings.xml appropriately. Or simply run builds with -U switch.
"-U" is usually good idea on CI machines anyway.
~t~
On Tue, Sep 29, 2009 at 5:55 PM, Gaurav Arora <G.Arora@...> wrote:
|
|
|
Re: Snapshots won't sync with shadow repositoryRight, in this case it seems like your Maven isn't asking for the
lastest, and thus not triggering Nexus to go check. Using -U will force it, or you can adjust the policy for the repo in your settings. The default is to check for snapshots once a day. (in maven) 2009/9/29 Tamás Cservenák <tamas@...>: > Oh, well it is maven CLI, that also "remembers" when to check for remote > stuff... modify your settings.xml appropriately. Or simply run builds with > -U switch. > "-U" is usually good idea on CI machines anyway. > ~t~ > > On Tue, Sep 29, 2009 at 5:55 PM, Gaurav Arora <G.Arora@...> > wrote: >> >> I lowered the artifact max age and metadata ages to 2 minutes. Doesn't >> work. >> There are also no exceptions in theRi log. Only if I run maven with -U does >> it >> get all the latest dependencies. :( >> >> >> >> Tamás Cservenák wrote: >> > >> > Yes, it should download them, _unless_ your "Expiration settings" are >> > preventing it. Try lowering the Max Ages for artifacts and metadata. >> > Release >> > and snapshot repositories do need different settings though! >> > Hope helps, >> > ~t~ >> > >> > On Tue, Sep 29, 2009 at 5:40 PM, GauravArora <gauravsworld@...> >> > wrote: >> > >> >> >> >> Tamas, >> >> >> >> You're right, I have the terminology mixed up. Let me explain what >> >> exactly >> >> is happening, the hosted snapshot repository shows that the latest >> >> build >> >> is >> >> from today. When I browse the proxy repository for the same build, it >> >> shows >> >> that it is from yesterday, perfectly valid. Now when I run maven tests, >> >> shouldn't the proxy check the remote for updated builds, download them >> >> and >> >> send those to me? >> >> >> >> Thanks, >> >> Gaurav >> >> >> >> >> >> Tamás Cservenák wrote: >> >> > >> >> > Um, >> >> > I think we have some terminology mixup: >> >> > >> >> > i believe you mean "proxy" repositories, not "shadow" repository.... >> >> > Shadows >> >> > are something completely different, not needed in this scenario. >> >> > >> >> > This approach you have is fine, except that proxy repo is a _proxy_, >> >> not >> >> a >> >> > _mirror_. Hence, it will go remote and fetch what it needs on demand >> >> > only.There is no notion of syncing between proxy and it's remote >> >> > target >> >> > repo. >> >> > >> >> > >> >> > Thanks, >> >> > ~t~ >> >> > >> >> > On Tue, Sep 29, 2009 at 5:12 PM, Gaurav Arora >> >> > <G.Arora@...>wrote: >> >> > >> >> >> We have a configuration whereby we have a local shadow repository >> >> >> of >> >> a >> >> >> hosted repository (over VPN). The reason for this is to prevent >> >> >> developers >> >> >> from having to download large amounts of data over the VPN >> >> >> connection >> >> >> which >> >> >> is relatively slow (obviously!). Is this the right use of a proxy >> >> >> (shadow) >> >> >> repository? Would a mirror be better suited in these circumstances? >> >> >> >> >> >> >> >> >> >> >> >> The proxy approach has been working fine for the last week or so. >> >> Today, >> >> >> for some odd reason, the proxy repository has stopped syncing >> >> >> automatically >> >> >> with the hosted repository. I tried setting up a scheduled task to >> >> sync >> >> >> the >> >> >> two (and having it run every 5 minutes) but it still doesn’t work. >> >> >> The >> >> >> proxy >> >> >> is out of sync with the hosted repository which is causing a lot of >> >> >> broken >> >> >> builds. Any suggestions why this is happening? >> >> >> >> >> >> >> >> >> >> >> >> Gaurav >> >> >> >> >> >> >> >> >> * >> >> >> >> >> >> Gaurav Arora >> >> >> * >> >> >> >> >> >> >> >> >> >> >> >> 4th Floor, Tower B, Logix Cyber Park, Plot C - 28 & 29, Sector - 62, >> >> >> Noida >> >> >> - 201 301, Uttar Pradesh, INDIA >> >> >> T: +91 120 4628 400 >> >> >> >> >> >> G.Arora@... >> >> >> http://www.iontrading.com >> >> >> >> >> >> *********************************************** >> >> >> *This email and any attachments may contain information which is >> >> >> confidential and/or privileged. The information is intended >> >> exclusively >> >> >> for >> >> >> the addressee and the views expressed may not be official policy, >> >> >> but >> >> the >> >> >> personal views of the originator. If you are not the intended >> >> recipient, >> >> >> be >> >> >> aware that any disclosure, copying, distribution or use of the >> >> contents >> >> >> is >> >> >> prohibited. If you have received this email and any file transmitted >> >> with >> >> >> it >> >> >> in error, please notify the sender by telephone or return email >> >> >> immediately >> >> >> and delete the material from your computer. Internet communications >> >> are >> >> >> not >> >> >> secure and ION Trading is not responsible for their abuse by third >> >> >> parties, >> >> >> nor for any alteration or corruption in transmission, nor for any >> >> damage >> >> >> or >> >> >> loss caused by any virus or other defect. ION Trading accepts no >> >> >> liability >> >> >> or responsibility arising out of or in any way connected to this >> >> email.* >> >> >> >> >> >> *********************************************** >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> >> http://www.nabble.com/Snapshots-won%27t-sync-with-shadow-repository-tp25664985p25665421.html >> >> Sent from the Nexus Maven Repository Manager Users List mailing list >> >> archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: nexus-user-unsubscribe@... >> >> For additional commands, e-mail: nexus-user-help@... >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Snapshots-won%27t-sync-with-shadow-repository-tp25664985p25665636.html >> Sent from the Nexus Maven Repository Manager Users List mailing list >> archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: nexus-user-unsubscribe@... >> For additional commands, e-mail: nexus-user-help@... >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-user-unsubscribe@... For additional commands, e-mail: nexus-user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |