<?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>Source Rebels&#187; Maven</title>
	<atom:link href="http://www.sourcerebels.com/blog/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sourcerebels.com/blog</link>
	<description>Por Edu Rodríguez Castillo</description>
	<lastBuildDate>Sat, 03 Jul 2010 06:03:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Integración rápida de Maven con Hudson y Archiva</title>
		<link>http://www.sourcerebels.com/blog/integracion-rapida-de-maven-con-apache-hudson-y-apache-archiva/</link>
		<comments>http://www.sourcerebels.com/blog/integracion-rapida-de-maven-con-apache-hudson-y-apache-archiva/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 06:14:54 +0000</pubDate>
		<dc:creator>Edu</dc:creator>
				<category><![CDATA[Archiva]]></category>
		<category><![CDATA[Continuous-Integration]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.sourcerebels.com/blog/?p=317</guid>
		<description><![CDATA[Supongamos que tenemos un proyecto dividido en varios módulos de funcionalidad y que cada módulo de funcionalidad genera un artefacto. Por ejemplo: core.jar: Almacena la lógica de negocio común. web.war: Aplicación web que hace uso de la lógica de negocio (utiliza core.jar). Cada vez que modificamos la lógica de negocio subiendo código al gestor de [...]]]></description>
			<content:encoded><![CDATA[<p>Supongamos que tenemos un proyecto dividido en varios módulos de funcionalidad y que cada módulo de funcionalidad genera un artefacto. Por ejemplo:</p>
<ul>
<li>core.jar: Almacena la lógica de negocio común.</li>
<li>web.war: Aplicación web que hace uso de la lógica de negocio (utiliza core.jar).</li>
</ul>
<p>Cada vez que modificamos la lógica de negocio subiendo código al gestor de versiones y se genere un artefacto core.jar queremos que se genere un nuevo artefacto web.war que incluya las modificaciones de el primero. Esto lo podemos conseguir fácilmente con Hudson, Maven y Archiva. Partimos de la base que tenemos el servidor Hudson montado y que tenemos dos proyectos definidos &#8220;core&#8221; y &#8220;web&#8221;. Ambos proyectos funcionan con Maven.</p>
<p><strong>Instalación y arranque rápido de Apache archiva:</strong></p>
<ul>
<li>Descargar y descomprimir Apache Archiva en la máquina que vaya a hacer de servidor de repositorios Maven. En mi caso es la misma máquina dónde se encuentra Hudson.</li>
<li>Ejecutar Apache Archiva:</li>
</ul>
<pre>
# $ARCHIVA_HOME/bin/archiva console
</pre>
<ul>
<li>Definir los repositorios que consideremos oportunos y usuarios con perfil &#8220;Repository Manager&#8221;. En mi caso trabajaré con el repositorio &#8220;snapshots&#8221; que viene definido por defecto.</li>
</ul>
<p><strong>Configuración Maven:</strong></p>
<ul>
<li>Editar el fichero pom.xml de todos los proyectos y añadir el repositorio archiva:</li>
</ul>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>archiva.snapshots<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://localhost:8081/archiva/repository/snapshots/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<ul>
<li>Editar el fichero pom.xml del proyecto web y añadir la dependencia al proyecto core, por ejemplo:</li>
</ul>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.sourcerebels<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>core<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0.0.1-SNAPSHOT<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<ul>
<li>Editar el fichero de configuración de Maven (settings.xml):</li>
</ul>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>archiva.internal<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>usuario_archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>password_archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>archiva.snapshots<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>usuario_archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>password_archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/server<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><strong>Configuración Hudson:</strong></p>
<ul>
<li>Para cada uno de los artefactos del proyecto configuraremos que se despliegue en el repositorio &#8220;archiva.snapshots&#8221;:</li>
</ul>
<p><a href="http://www.sourcerebels.com/blog/wp-content/uploads/2010/06/hudson_config_archiva.png"><img class="alignleft size-full wp-image-327" title="hudson_config_archiva" src="http://www.sourcerebels.com/blog/wp-content/uploads/2010/06/hudson_config_archiva.png" alt="" width="595" height="313" /></a></p>
<ul>
<li>Con este punto conseguiremos que cada vez que se genere una nueva versión del fichero core.jar esta se archive en el repositorio Maven. Ahora para que el proyecto web se construya cuando alguno de los snapshots de los que depende sean construidos:</li>
</ul>
<p><a href="http://www.sourcerebels.com/blog/wp-content/uploads/2010/06/hudson_config_dependencias.png"><img class="size-full wp-image-324 alignleft" title="hudson_config_dependencias" src="http://www.sourcerebels.com/blog/wp-content/uploads/2010/06/hudson_config_dependencias.png" alt="" width="595" height="58" /></a></p>
<ul>
<br/><br/><br />
Esto es todo <img src='http://www.sourcerebels.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcerebels.com/blog/integracion-rapida-de-maven-con-apache-hudson-y-apache-archiva/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Maven. Compiler JVM Compliance level / Compilador Nivel de especificación JVM</title>
		<link>http://www.sourcerebels.com/blog/apache-maven-compiler-jvm-compliance-level-compilador-nivel-de-especificacion-jvm/</link>
		<comments>http://www.sourcerebels.com/blog/apache-maven-compiler-jvm-compliance-level-compilador-nivel-de-especificacion-jvm/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 12:31:55 +0000</pubDate>
		<dc:creator>Edu</dc:creator>
				<category><![CDATA[Compiler]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://www.sourcerebels.com/blog/?p=213</guid>
		<description><![CDATA[At your pom.xml / En tu fichero pom.xml: &#60;plugin&#62; &#60;groupId&#62;org.apache.maven.plugins&#60;/groupId&#62; &#60;artifactId&#62;maven-compiler-plugin&#60;/artifactId&#62; &#60;configuration&#62; &#60;source&#62;1.6&#60;/source&#62; &#60;target&#62;1.6&#60;/target&#62; &#60;/configuration&#62; &#60;/plugin&#62;]]></description>
			<content:encoded><![CDATA[<p>At your pom.xml / En tu fichero pom.xml:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.apache.maven.plugins<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-compiler-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1.6<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/source<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1.6<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.sourcerebels.com/blog/apache-maven-compiler-jvm-compliance-level-compilador-nivel-de-especificacion-jvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UrlRewriteFilter. Setting up / Configuración</title>
		<link>http://www.sourcerebels.com/blog/urlrewritefilter-setting-up-configuracion/</link>
		<comments>http://www.sourcerebels.com/blog/urlrewritefilter-setting-up-configuracion/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 11:09:54 +0000</pubDate>
		<dc:creator>Edu</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[UrlRewriteFilter]]></category>

		<guid isPermaLink="false">http://www.sourcerebels.com/blog/?p=209</guid>
		<description><![CDATA[Add this Maven dependency to your pom.xml or download urlrewrite*.jar from UrlRewriteFilter Home / Añade esta dependencia Maven a tu pom.xml o descarga urlrewrite*.jar desde la home de UrlRewriteFilter. &#60;dependency&#62; &#60;groupId&#62;org.tuckey&#60;/groupId&#62; &#60;artifactId&#62;urlrewritefilter&#60;/artifactId&#62; &#60;version&#62;3.1.0&#60;/version&#62; &#60;/dependency&#62; Add this filter definition to your web.xml file / Añade esta definición de filtro a tu fichero web.xml: &#60;filter&#62; &#60;filter-name&#62;UrlRewriteFilter&#60;/filter-name&#62; &#60;filter-class&#62;org.tuckey.web.filters.urlrewrite.UrlRewriteFilter&#60;/filter-class&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Add this Maven dependency to your pom.xml or download urlrewrite*.jar from UrlRewriteFilter Home / Añade esta dependencia Maven a tu pom.xml o descarga urlrewrite*.jar desde la home de UrlRewriteFilter.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.tuckey<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>urlrewritefilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3.1.0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Add this filter definition to your web.xml file / Añade esta definición de filtro a tu fichero web.xml:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UrlRewriteFilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UrlRewriteFilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Add the file urlrewrite.xml to your WEB-INF directory / Añade el fichero urlrewrite.xml a tu directorio WEB-INF:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE urlrewrite</span>
<span style="color: #00bbdd;">	PUBLIC &quot;-//tuckey.org//DTD UrlRewrite 3.0//EN&quot;</span>
<span style="color: #00bbdd;">	&quot;http://tuckey.org/res/dtds/urlrewrite3.0.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;urlrewrite<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;rule<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;from<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>^/some/olddir/(.*)$<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/from<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;to</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;redirect&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>/very/newdir/$1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/to<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/rule<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;rule</span> <span style="color: #000066;">match-type</span>=<span style="color: #ff0000;">&quot;wildcard&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;from<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/blog/archive/**<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/from<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;to</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;redirect&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>/roller/history/$1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/to<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/rule<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/urlrewrite<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Some useful links / Algunos enlaces útiles:</p>
<p><a href="http://tuckey.org/urlrewrite/#download">UrlRewriteFilter Download</a><br />
<a href="http://tuckey.org/urlrewrite/manual/3.0/">UrlRewriteFilter Manual v3.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcerebels.com/blog/urlrewritefilter-setting-up-configuracion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maven. Integración básica de XMLBeans</title>
		<link>http://www.sourcerebels.com/blog/maven-integracion-basica-de-xmlbeans/</link>
		<comments>http://www.sourcerebels.com/blog/maven-integracion-basica-de-xmlbeans/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 11:01:35 +0000</pubDate>
		<dc:creator>Edu</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[XML Schema]]></category>

		<guid isPermaLink="false">http://www.sourcerebels.com/blog/?p=179</guid>
		<description><![CDATA[Ruta dónde almacenar los ficheros .xsd: src/main/xsd Extracto del fichero pom.xml: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 &#60;plugin&#62; &#60;groupId&#62;org.codehaus.mojo&#60;/groupId&#62; &#60;artifactId&#62;xmlbeans-maven-plugin&#60;/artifactId&#62; &#60;version&#62;2.3.2&#60;/version&#62; &#60;executions&#62; &#60;execution&#62; &#60;id /&#62; &#60;phase&#62;generate-sources&#60;/phase&#62; &#60;goals&#62; &#60;goal&#62;xmlbeans&#60;/goal&#62; &#60;/goals&#62; &#60;/execution&#62; &#60;/executions&#62; &#60;configuration&#62; &#60;verbose&#62;true&#60;/verbose&#62; &#60;quiet&#62;false&#60;/quiet&#62; &#60;outputJar&#62;target/schema.jar&#60;/outputJar&#62; &#60;javaSource&#62;1.5&#60;/javaSource&#62; &#60;/configuration&#62; &#60;/plugin&#62; Ruta de generación [...]]]></description>
			<content:encoded><![CDATA[<p>Ruta dónde almacenar los ficheros .xsd:</p>
<blockquote><p>src/main/xsd</p></blockquote>
<p>Extracto del fichero pom.xml:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.mojo<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xmlbeans-maven-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>2.3.2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;executions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;execution<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;phase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>generate-sources<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/phase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;goals<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;goal<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xmlbeans<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/goal<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/goals<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/execution<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/executions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;verbose<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/verbose<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;quiet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/quiet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;outputJar<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>target/schema.jar<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/outputJar<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;javaSource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1.5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/javaSource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Ruta de generación de ficheros .java:</p>
<blockquote><p>target/generated-sources</p></blockquote>
<p>Ruta de generación de ficheros .class:</p>
<blockquote><p>target/generated-classes</p></blockquote>
<p>JAR generado:</p>
<blockquote><p>target/schema.jar</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcerebels.com/blog/maven-integracion-basica-de-xmlbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Maven. m2eclipse Integración con WTP</title>
		<link>http://www.sourcerebels.com/blog/eclipse-maven-m2eclipse-integracion-con-wtp/</link>
		<comments>http://www.sourcerebels.com/blog/eclipse-maven-m2eclipse-integracion-con-wtp/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 10:55:21 +0000</pubDate>
		<dc:creator>Edu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://www.sourcerebels.com/blog/?p=158</guid>
		<description><![CDATA[Actualización: Para descargar la integración con WTP, actualmente se debe hacer desde el update site: http://m2eclipse.sonatype.org/sites/m2e-extras Añadir el &#8220;update site&#8221; del plugin m2eclipse. http://m2eclipse.sonatype.org/update/ Instalar los componentes  dentro del grupo &#8220;Maven Integration&#8221; y el componente &#8220;Maven Integration for WTP&#8221;. Una vez instalados los componentes, reiniciar Eclipse. Crearemos un nuevo proyecto Maven pulsando control+N y seleccionando [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Actualización:</strong></p>
<p>Para descargar la integración con WTP, actualmente se debe hacer  desde el update site:</p>
<p><a href="http://m2eclipse.sonatype.org/sites/m2e-extras" target="_blank">http://m2eclipse.sonatype.org/sites/m2e-extras</a></p>
<ul>
<li>Añadir el &#8220;update site&#8221; del plugin m2eclipse.</li>
</ul>
<blockquote><p>http://m2eclipse.sonatype.org/update/</p></blockquote>
<ul>
<li>Instalar los componentes  dentro del grupo &#8220;Maven Integration&#8221; y el componente &#8220;Maven Integration for WTP&#8221;.</li>
</ul>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-159" title="eclipse_m2eclipse_software_update" src="http://www.sourcerebels.com/blog/wp-content/uploads/2009/11/eclipse_m2eclipse_software_update.png" alt="eclipse_m2eclipse_software_update" width="456" height="361" /></p>
<ul>
<li>Una vez instalados los componentes, reiniciar Eclipse.</li>
<li>Crearemos un nuevo proyecto Maven pulsando control+N y seleccionando &#8220;Maven Project&#8221; de la categoría de proyectos &#8220;Maven&#8221;.</li>
</ul>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-166" title="eclipse_m2eclipse_new_maven_project" src="http://www.sourcerebels.com/blog/wp-content/uploads/2009/11/eclipse_m2eclipse_new_maven_project.png" alt="eclipse_m2eclipse_new_maven_project" width="420" height="308" /></p>
<ul>
<li>En la primera pantalla del asistente dejaremos todas las opciones por defecto para crear un proyecto a partir de un arquetipo.</li>
<li>Escogeremos el arquetipo &#8220;maven-archetype-webapp&#8221; y pulsaremos &#8220;Next&#8221;.</li>
</ul>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-169" title="eclipse_m2eclipse_maven_archetype_selection" src="http://www.sourcerebels.com/blog/wp-content/uploads/2009/11/eclipse_m2eclipse_maven_archetype_selection.png" alt="eclipse_m2eclipse_maven_archetype_selection" width="529" height="407" /></p>
<ul>
<li>Seleccionaremos los valores de las propiedades GroupId (Agrupación), ArtifactId (Identificador del artefacto), Version y Package.</li>
</ul>
<ul>
<li><img class="aligncenter size-full wp-image-173" title="eclipse_m2eclipse_maven_project_properties" src="http://www.sourcerebels.com/blog/wp-content/uploads/2009/11/eclipse_m2eclipse_maven_project_properties.png" alt="eclipse_m2eclipse_maven_project_properties" width="529" height="407" /></li>
</ul>
<ul>
<li>Desde este momento ya es posible añadir el proyecto a alguno de los servidores configurados en WTP y lo que es mejor utilizar el depurador en caso de que lo necesitemos.</li>
</ul>
<p><img class="aligncenter size-full wp-image-175" title="eclipse_m2eclipse_add_and_remove_projects" src="http://www.sourcerebels.com/blog/wp-content/uploads/2009/11/eclipse_m2eclipse_add_and_remove_projects.png" alt="eclipse_m2eclipse_add_and_remove_projects" width="420" height="393" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcerebels.com/blog/eclipse-maven-m2eclipse-integracion-con-wtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
