Sorry for the late answer.
You can use preemptive by configuring the server declaration as described here:
http://maven.apache.org/guides/mini/guide-http-settings.html
<server>
<id>my-server</id>
<configuration>
<httpConfiguration>
<put>
<params>
<param>
<name>http.authentication.preemptive</name>
<value>%b,true</value>
</param>
</params>
</put>
</httpConfiguration>
</configuration>
</server>
Now, Maven is caching credential for the same server URL (ignoring
server/repository id declaration), so you may have some issues anyway
:(
Good luck.
On Tue, Apr 6, 2010 at 12:53 AM, kazarian8 <[email protected]> wrote:
>
> Is there a way to force Maven to send credential to a specific repo?
>
> I found the following quote in a different forum:
>
> You're right, maven first tries to communicate with no permissions
> (anonymous user on Artifactory side) and will only send credentials if
> requested by Artifactory.
>
> The problem is that I need to allow two repos to be accessed anonymously and
> via credentials while two others need to be always accessed via credentials.
> How can I force Maven to always pass credentials to a specific repository?
>
> Note:
>
> I have all my repos (profiles) and server credentials configured in my
> settings.xml
>
> ** this question has also been posted to the Maven forum **
>
> Thanks,
> mk
> --
> View this message in context:
> http://old.nabble.com/Force-server-credentials-to-be-used-against-Artifactory-tp28145209p28145209.html
> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
--
Co. Founder and Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users