<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog de Justo Aguilar &#187; subversion</title>
	<atom:link href="http://blog.justoaguilar.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.justoaguilar.com</link>
	<description>Libros, Java y lo que surja.</description>
	<lastBuildDate>Sun, 22 Jan 2012 14:26:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Configurar proxy en Subversion y Maven</title>
		<link>http://blog.justoaguilar.com/2008/07/configurar-proxy-en-subversion-y-maven/</link>
		<comments>http://blog.justoaguilar.com/2008/07/configurar-proxy-en-subversion-y-maven/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 19:34:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.justoaguilar.com/?p=23</guid>
		<description><![CDATA[Hoy he empezado a trabajar en las oficinas del cliente del proyecto que me ocupará los próximos meses y he tenido que configurar todo mi sistema para que se conecte a Internet a través de un proxy. Aunque esta configuración es trivial, voy a comentar los ficheros que hay modificar para que tanto Maven como [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<!--INFOLINKS_ON-->
<p><p>Hoy he empezado a trabajar en las oficinas del cliente del proyecto que me ocupará los próximos meses y he tenido que configurar todo mi sistema para que se conecte a Internet a través de un proxy. Aunque esta configuración es trivial, voy a comentar los ficheros que hay modificar para que tanto <a href="http://maven.apache.org"><em>Maven</em></a> como <a href="http://subversion.tigris.org"><em>Subversion</em></a> pueden acceder a repositorios externos a través de un proxy.</p>
<p></p>
<p><strong>Maven</strong></p>
<p>En <em>Maven</em> el fichero que tiene que ser modificado se llama <code>settings.xml</code> y está situado bajo el directorio <code>$MAVEN_HOME/config</code>, siendo <code>$MAVEN_HOME</code> el directorio base de instalación de <em>Maven</em>.</p>
<p>Dentro de este fichero será necesario buscar el siguiente bloque de código :</p>
<pre class="brush: xml; title: ; notranslate">
&lt;proxies&gt;
&lt;proxy&gt;
&lt;id&gt;optional&lt;/id&gt;
&lt;active&gt;true&lt;/active&gt;
&lt;protocol&gt;http&lt;/protocol&gt;
&lt;username&gt;proxyuser&lt;/username&gt;
&lt;password&gt;proxypass&lt;/password&gt;
&lt;host&gt;proxy.host.net&lt;/host&gt;
&lt;port&gt;80&lt;/port&gt;
&lt;nonProxyHosts&gt;local.net,some.host.com&lt;/nonProxyHosts&gt;
&lt;/proxy&gt;
&lt;/proxies&gt;
</pre>
<p>Simplemente debéis establecer los parámetros de la configuración de acceso al proxy en los elementos correspondientes, por ejemplo : </p>
<pre class="brush: xml; title: ; notranslate">
&lt;proxy&gt;
&lt;!-- Parámetro opcional --&gt;
&lt;id&gt;Proxy oficina cliente&lt;/id&gt;
&lt;active&gt;true&lt;/active&gt;
&lt;protocol&gt;http&lt;/protocol&gt;
&lt;username&gt;proxyUser&lt;/username&gt;
&lt;password&gt;proxyPassword&lt;/password&gt;
&lt;host&gt;10.23.22.43&lt;/host&gt;
&lt;port&gt;80&lt;/port&gt;
&lt;!-- Direcciones a excluir de pasar por el proxy --&gt;
&lt;nonProxyHosts&gt;localhost, 10.23.23.44&lt;/nonProxyHosts&gt;
&lt;/proxy&gt;
&lt;/proxies&gt;
</pre>
<p>
<strong>Subversion</strong><br />
<br />
La configuración de <em>Subversion</em> es muy parecida, aunque permite mayor flexibilidad. En este caso el fichero a modificar se encuentra en la ruta <code>/etc/subversion/servers</code>. La flexibilidad que aporta <em>Subversion</em> a la hora de configurar el acceso a un repositorio via proxy está reflejada en la posibilidad de configurar un <em>proxy global</em> para todos los repositorios o la posibilidad de establecer la configuración de un proxy para grupo de repositorios. </p>
<p>El ficheros de configuración base es el siguiente : </p>
<pre class="brush: bash; title: ; notranslate">
### This file specifies server-specific protocol parameters,
### including HTTP proxy information, and HTTP timeout settings.
###
### The currently defined server options are:
###   http-proxy-host            Proxy host for HTTP connection
###   http-proxy-port            Port number of proxy host service
###   http-proxy-username        Username for auth to proxy service
###   http-proxy-password        Password for auth to proxy service
###   http-proxy-exceptions      List of sites that do not use proxy
###   http-timeout               Timeout for HTTP requests in seconds
###   http-compression           Whether to compress HTTP requests
###   neon-debug-mask            Debug mask for Neon HTTP library
###   ssl-authority-files        List of files, each of a trusted CAs
###   ssl-trust-default-ca       Trust the system 'default' CAs
###   ssl-client-cert-file       PKCS#12 format client certificate file
###   ssl-client-cert-password   Client Key password, if needed.
###
### HTTP timeouts, if given, are specified in seconds.  A timeout
### of 0, i.e. zero, causes a builtin default to be used.
###
### The commented-out examples below are intended only to
### demonstrate how to use this file; any resemblance to actual
### servers, living or dead, is entirely coincidental.

### In this section, the URL of the repository you're trying to
### access is matched against the patterns on the right.  If a
### match is found, the server info is from the section with the
### corresponding name.

[groups]
# group1 = *.collab.net
# othergroup = repository.blarggitywhoomph.com
# thirdgroup = *.example.com

### Information for the first group:
# [group1]
# http-proxy-host = proxy1.some-domain-name.com
# http-proxy-port = 80
# http-proxy-username = blah
# http-proxy-password = doubleblah
# http-timeout = 60
# neon-debug-mask = 130

### Information for the second group:
# [othergroup]
# http-proxy-host = proxy2.some-domain-name.com
# http-proxy-port = 9000
# No username and password, so use the defaults below.

### You can set default parameters in the 'global' section.
### These parameters apply if no corresponding parameter is set in
### a specifically matched group as shown above.  Thus, if you go
### through the same proxy server to reach every site on the
### Internet, you probably just want to put that server's
### information in the 'global' section and not bother with
### 'groups' or any other sections.
###
### If you go through a proxy for all but a few sites, you can
### list those exceptions under 'http-proxy-exceptions'.  This only
### overrides defaults, not explicitly matched server names.
###
### 'ssl-authority-files' is a semicolon-delimited list of files,
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
# http-proxy-host = defaultproxy.whatever.com
# http-proxy-port = 7000
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
</pre>
<p>Como puedes observar, en la primera parte del fichero se definen los grupos, <em>groups</em>, con la <em>url</em> de los repositorios asociados. </p>
<pre class="brush: bash; title: ; notranslate">
[groups]
group1 = *.collab.net
othergroup = repository.blarggitywhoomph.com
thirdgroup = *.example.com
</pre>
<p>Observad que se permite el mapeo de todos los subdominios de un dominio mediante el uso de *.</p>
<p>En la segunda parte del fichero, se especifica la configuración del proxy asociada a cada grupo. En primer lugar se especifica, [entre corchetes] el nombre del grupo de repositorios a configurar y posteriormente los parámetros propios de configuración del proxy, cuyos nombres son autoexplicativos.</p>
<pre class="brush: bash; title: ; notranslate">
[group1]
http-proxy-host = proxy1.some-domain-name.com
http-proxy-port = 80
http-proxy-username = blah
http-proxy-password = doubleblah
http-timeout = 60
</pre>
<p>Por último, es posible definir una configuración global de acceso a todos los repositorios, se realiza bajo la etiqueta <b>[global]</b></p>
<pre class="brush: bash; title: ; notranslate">
[global]
http-proxy-exceptions = localhost, 10.23.23.44
http-proxy-host = 10.23.22.43
http-proxy-port = 80
http-proxy-username = proxyUser
http-proxy-password = proxyPassword
</pre>
<p>Para una configuración más avanzada consultar la <a href="http://svnbook.red-bean.com/en/1.1/ch07.html">referencia oficial</a>.</p>

<!--INFOLINKS_OFF-->
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://blog.justoaguilar.com/2008/07/configurar-proxy-en-subversion-y-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

