I would be interest as well to know if this works in Maven 3.0.3. Might you be 
able to try with 3.0.3?

On Feb 10, 2012, at 11:26 AM, Tamás Cservenák wrote:

> 403 from nexus means "you gave me credentials, but those credentials
> are no good for content you ask for".
> 401 would mean "you wanna access something that is protected and you
> have not authed itself".
> 
> Are you _sure_ same request (same!) works in your setup with Maven 303?
> Preemptive or non-preemptive should not matter from Nexus side.
> If still suspect nexus, you can put it into debug log mode and watch
> logs for this single request.... and see what Nexus "thinks" it got as
> auth info and to what permissions it resolves to...
> 
> Thanks,
> ~t~
> 
> On Fri, Feb 10, 2012 at 9:18 AM, Olivier Lamy <[email protected]> wrote:
>> Hello,
>> 
>> I'm very interested to know the technical reason of this "403 because
>> of the preemptive authentication(the credentials are valid and work
>> for non-preemptive auth" :-)
>> 
>> BTW preemptive cannot be deactivated. (Can you load an issue for that ? )
>> 
>> 2012/2/9 Koch, Micah K (Micah) <[email protected]>:
>>> So I was trying out maven 3.0.4, and it has problems when we have server 
>>> elements(with username and password) defined in our settings, as we get a 
>>> 403 because of the preemptive authentication(the credentials are valid and 
>>> work for non-preemptive auth with maven 3.0.3).  In this particular case 
>>> its just for a GET request.  I've tried turning preemptive auth off, but it 
>>> didn't seem to work.  Based on the info at:
>>> http://maven.apache.org/guides/mini/guide-http-settings.html
>>> Here is what I tried to turn it off:
>>> <servers>
>>>  <server>
>>>    <id>snapshots</id>
>>>      <configuration>
>>>        <wagonProvider>httpclient</wagonProvider>
>>>        <httpConfiguration>
>>>          <all>
>>>            <params>
>>>              <param>
>>>                <name>http.authentication.preemptive</name>
>>>                <value>%b,false</value>
>>>              </param>
>>>            </params>
>>>          </all>
>>>        </httpConfiguration>
>>>      </configuration>
>>>      <username>build</username>
>>>      <password>...</password>
>>>  </server>
>>>  ...
>>> 
>>> I tried "get" instead of "all", but it still insists on preemptive auth(I'm 
>>> using a packet sniffer to confirm).  The message I'm seeing:
>>> [WARNING] Failure to transfer 
>>> motive.smp:db:5.0.0.0-SNAPSHOT/maven-metadata.xml from 
>>> http://maven.motive.com/content/groups/public-snapshots was cached in the 
>>> local repository, resolution will not be reattempted until the update 
>>> interval of snapshots has elapsed or updates are forced. Original error: 
>>> Could not transfer metadata 
>>> motive.smp:db:5.0.0.0-SNAPSHOT/maven-metadata.xml from/to snapshots 
>>> (http://maven.motive.com/content/groups/public-snapshots): Access denied 
>>> to: 
>>> http://maven.motive.com/content/groups/public-snapshots/motive/smp/db/5.0.0.0-SNAPSHOT/maven-metadata.xml,
>>>  ReasonPhrase:Forbidden.
>>> 
>>> In this case it doesn't cause the build to fail, but in case my repository 
>>> is clean it does.  Does anyone have any clues about how to turn off 
>>> preemptive auth for maven 3.0.4?
>>> 
>>> The reason I'm even trying Maven 3.0.4, is in 3.0.3 I'm getting 
>>> OutOfMemoryException on deploying large artifacts.  It seems like its 
>>> reading the whole artifact into memory.  I was hoping with the wagon 
>>> changes in 3.0.4 it might use a streaming approach instead.  Thanks,
>>> Micah
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
>> 
>> 
>> 
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

What matters is not ideas, but the people who have them. Good people can fix 
bad ideas, but good ideas can't save bad people. 

 -- Paul Graham




Reply via email to