You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2010/11/22 18:43:21 UTC

svn commit: r1037798 - /buildr/trunk/doc/artifacts.textile

Author: boisvert
Date: Mon Nov 22 17:43:20 2010
New Revision: 1037798

URL: http://svn.apache.org/viewvc?rev=1037798&view=rev
Log:
Add HTTP authentication example

Modified:
    buildr/trunk/doc/artifacts.textile

Modified: buildr/trunk/doc/artifacts.textile
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/artifacts.textile?rev=1037798&r1=1037797&r2=1037798&view=diff
==============================================================================
--- buildr/trunk/doc/artifacts.textile (original)
+++ buildr/trunk/doc/artifacts.textile Mon Nov 22 17:43:20 2010
@@ -102,6 +102,12 @@ When you call @repositories.remote@, you
 repositories.remote << 'http://www.ibiblio.org/maven2/'
 {% endhighlight %}
 
+If your repository requires HTTP authentication, you can write,
+
+{% highlight ruby %}
+repositories.remote << URI.parse("http://user:password@repository.example.com")
+{% endhighlight %}
+
 If you need to use a proxy server to access remote repositories, you can set the environment variable @HTTP_PROXY@ to the proxy server URL (use @HTTPS_PROXY@ for proxying HTTPS connections).  You can also work without a proxy for certain hosts by specifying the @NO_PROXY@ environment variable.  For example:
 
 {% highlight sh %}