Re: Fail fast for 401 Unauthorized failures

2016-07-27 Thread Gordon Cody
Docs are not always accurate. Sometimes they are simply not up to date.

All of our GET/PUT requests include credentials on the first attempt. This
is from our settings.xml. Notice the tag ,


  someID
  someUser
  somePassword
  
httpclient

  
true
  

  


Regards, Gord Cody

On Wed, Jul 27, 2016 at 2:34 AM, Tomasz Juchniewicz 
wrote:

> Probably not. Following docs preemptive authentication is for PUT requests.
> I have a problem with downloading.
>
> 2016-07-25 20:43 GMT+02:00 Mirko Friedenhagen :
>
> > Hello,
> >
> > maybe
> >
> >
> https://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication
> > could help.
> > Regards
> > Mirko
> > --
> > Sent from my mobile
> >
> > Am 25.07.2016 15:11 schrieb "Tomasz Juchniewicz"  >:
> >
> > > Hi,
> > >
> > > I'm working in corporate environment with strict password locking
> > policies.
> > > After 5 authentication errors my account is locked.
> > >
> > > My problem is that Maven tries to download artifacts and not every
> error
> > > (e.g. downloading maven-metadata.xml) causes to stop the build and this
> > > leads to account lock. Any idea to make Maven fail fast after first
> > > authentication problem.
> > >
> > >
> > >
> > > --
> > > TJu
> > >
> >
>
>
>
> --
> TJu
>



-- 
Best Regards, Gord Cody

Release Manager  Zafin Labs Americas Inc.
179 Colonnade Road-Suite 100, Ottawa ON, Canada
Phone: +1 (613) 216-2504  Fax: +1 (613) 688-1374  Mobile: +1 613-601-2734
Web: http://zafin.com  Email: gordon.c...@zafin.com

-- 
Zafin - Canada

-- 
http://zafin.com



--

Connect with us

  
  

News and Events

Zafin announces 100 person Center of Excellence in Toronto 


For the 2nd consecutive year, Zafin named to the Deloitte Fast 50 and Fast 
500 rankings 





Re: Fail fast for 401 Unauthorized failures

2016-07-26 Thread Tomasz Juchniewicz
Probably not. Following docs preemptive authentication is for PUT requests.
I have a problem with downloading.

2016-07-25 20:43 GMT+02:00 Mirko Friedenhagen :

> Hello,
>
> maybe
>
> https://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication
> could help.
> Regards
> Mirko
> --
> Sent from my mobile
>
> Am 25.07.2016 15:11 schrieb "Tomasz Juchniewicz" :
>
> > Hi,
> >
> > I'm working in corporate environment with strict password locking
> policies.
> > After 5 authentication errors my account is locked.
> >
> > My problem is that Maven tries to download artifacts and not every error
> > (e.g. downloading maven-metadata.xml) causes to stop the build and this
> > leads to account lock. Any idea to make Maven fail fast after first
> > authentication problem.
> >
> >
> >
> > --
> > TJu
> >
>



-- 
TJu


Re: Fail fast for 401 Unauthorized failures

2016-07-25 Thread Mirko Friedenhagen
Hello,

maybe
https://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication
could help.
Regards
Mirko
-- 
Sent from my mobile

Am 25.07.2016 15:11 schrieb "Tomasz Juchniewicz" :

> Hi,
>
> I'm working in corporate environment with strict password locking policies.
> After 5 authentication errors my account is locked.
>
> My problem is that Maven tries to download artifacts and not every error
> (e.g. downloading maven-metadata.xml) causes to stop the build and this
> leads to account lock. Any idea to make Maven fail fast after first
> authentication problem.
>
>
>
> --
> TJu
>


Fail fast for 401 Unauthorized failures

2016-07-25 Thread Tomasz Juchniewicz
Hi,

I'm working in corporate environment with strict password locking policies.
After 5 authentication errors my account is locked.

My problem is that Maven tries to download artifacts and not every error
(e.g. downloading maven-metadata.xml) causes to stop the build and this
leads to account lock. Any idea to make Maven fail fast after first
authentication problem.



-- 
TJu