<?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>JSF Blog &#187; Java</title>
	<atom:link href="http://www.jsfblog.info/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jsfblog.info</link>
	<description>Discussion on all things Java and JSF</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:24:46 +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>Beware what you put in the endorsed dir!</title>
		<link>http://www.jsfblog.info/2012/01/beware-what-you-put-in-the-endoresed-dir/</link>
		<comments>http://www.jsfblog.info/2012/01/beware-what-you-put-in-the-endoresed-dir/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 11:39:37 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[xerces]]></category>
		<category><![CDATA[XSD]]></category>

		<guid isPermaLink="false">http://www.jsfblog.info/?p=445</guid>
		<description><![CDATA[We use docflex to build our XSD documentation, integrating with maven to produce XSD documentation in our maven site reports. I recently had to upgrade some developers from docflex-re 1.8.0 to 1.8.5, this migration went fine. For some reason it didn&#8217;t on my machine. I received the following error: Anyway to cut a long story [...]]]></description>
			<content:encoded><![CDATA[<p>We use <a title="docflex" href="http://www.filigris.com/products/docflex/">docflex</a> to build our XSD documentation, <a href="http://www.filigris.com/products/docflex_xml/integrations/maven/">integrating with maven</a> to produce XSD documentation in our <a href="http://maven.apache.org/plugins/maven-site-plugin/">maven site reports</a>.</p>
<p>I recently had to upgrade some developers from docflex-re 1.8.0 to 1.8.5, this migration went fine.</p>
<p>For some reason it didn&#8217;t on my machine.</p>
<p>I received the following error:</p>
<pre class="brush: plain; title: ; notranslate">
java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
</pre>
<p>Anyway to cut a long story short it transpired that about a year ago whilst working on another project I had changed the jdk&#8217;s xerces jar by placing</p>
<ul>
<li>xalan.jar</li>
<li>xercesImpl.jar</li>
<li>xml-apis.jar</li>
<li>serializer.jar</li>
</ul>
<p>in the jre/lib/endorsed directory and completely forgot about it.</p>
<p>Removing these jars (which were probably older versions and I didn&#8217;t need in there anyway) and everything works fine.</p>
<p>I&#8217;d imagine putting a new version of xerces in endorsed would probably fix this as well&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jsfblog.info/2012/01/beware-what-you-put-in-the-endoresed-dir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Eclipse Plugins</title>
		<link>http://www.jsfblog.info/2010/11/useful-eclipse-plugins/</link>
		<comments>http://www.jsfblog.info/2010/11/useful-eclipse-plugins/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 12:52:11 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[checkstyle]]></category>
		<category><![CDATA[Cobertura]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[m2eclipse]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[pmd]]></category>

		<guid isPermaLink="false">http://www.jsfblog.info/?p=299</guid>
		<description><![CDATA[A list of handy plugins for the Eclipse IDE eCobertura &#8211; Allows Cobertura code coverage to be run from the IDE directly eclipse-cs &#8211; Enforces coding standards using the CheckStyle tool PMD &#8211; Scans Java code and reports potential problems M2Eclipse &#8211; Maven integration from Sonatype m2e-extensions &#8211; Works with version 0.10 of the M2Eclipse [...]]]></description>
			<content:encoded><![CDATA[<p>A list of handy plugins for the <a href="http://www.eclipse.org/">Eclipse IDE</a></p>
<ul>
<li><a href="http://ecobertura.johoop.de/" target="_blank">eCobertura</a> &#8211; Allows <a href="http://cobertura.sourceforge.net/" target="_blank">Cobertura</a> code coverage to be run from the IDE directly</li>
<li><a href="http://eclipse-cs.sourceforge.net/" target="_blank">eclipse-cs</a> &#8211; Enforces coding standards using the <a href="http://eclipse-cs.sourceforge.net/" target="_blank">CheckStyle</a> tool</li>
<li><a href="http://pmd.sourceforge.net/eclipse/" target="_blank">PMD</a> &#8211; Scans Java code and reports potential problems</li>
<li><a href="http://m2eclipse.sonatype.org/" target="_blank">M2Eclipse</a> &#8211; Maven integration from Sonatype
<ul>
<li><a href="http://code.google.com/p/m2e-extensions/" target="_blank">m2e-extensions</a> &#8211; Works with version 0.10 of the M2Eclipse plugin. Can automatically setup Checkstyle and PMD configuration for Eclipse to match their configuration from the pom file if they are in it</li>
<li><a href="http://bimargulies.github.com/m2e-code-quality/" target="_blank">m2e-code-quality</a> &#8211; Same as m2e-extensions, except this one works with version 0.12 of the M2Eclipse plugin</li>
</ul>
</li>
</ul>
<p><strong>Note:</strong> both m2e-extensions and m2e-code-quality only work if you have the pmd and checkstyle plugins configured in the build section of the pom. They do not currently work if you have pmd and checkstyle configured in the reporting section of the pom.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jsfblog.info/2010/11/useful-eclipse-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSF, Iterating with tomahawk radio buttons, t:datalist, a4j:repeat</title>
		<link>http://www.jsfblog.info/2010/05/jsf-iterating-with-tomahawk-radio-buttons-tdatalist-a4jrepeat/</link>
		<comments>http://www.jsfblog.info/2010/05/jsf-iterating-with-tomahawk-radio-buttons-tdatalist-a4jrepeat/#comments</comments>
		<pubDate>Fri, 14 May 2010 18:22:48 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[tomahawk]]></category>

		<guid isPermaLink="false">http://www.jsfblog.info/?p=224</guid>
		<description><![CDATA[The standard JSF radio buttons h:selectOneRadio render a load of old school html (i.e. they use table tags to do layout, (all a bit 1996)). e.g. JSF h:selectOneRadio tag Code for #{radioOptions} Note: I&#8217;m using jboss seam in the example above, but you could easily remove the seam annotations and define the bean in using [...]]]></description>
			<content:encoded><![CDATA[<p>The standard JSF radio buttons <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/selectOneRadio.html">h:selectOneRadio</a> render a load of old school html (i.e. they use table tags to do layout, (all a bit 1996)).</p>
<p>e.g. JSF h:selectOneRadio tag</p>
<pre class="brush: xml; title: ; notranslate">
&lt;h:selectOneRadio id=&quot;aRadio&quot;&gt;
	&lt;f:selectItems value=&quot;#{radioOptions.items}&quot; /&gt;
&lt;/h:selectOneRadio&gt;
</pre>
<p>Code for #{radioOptions}</p>
<pre class="brush: java; title: ; notranslate">
import java.util.ArrayList;
import java.util.List;

import javax.faces.model.SelectItem;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Name(&quot;radioOptions&quot;)
@Scope(ScopeType.APPLICATION)
public class RadioOptions
{
	public List&lt;SelectItem&gt; items = new ArrayList&lt;SelectItem&gt;();

	public RadioOptions()
	{
		items.add(new SelectItem(&quot;1&quot;, &quot;label 1&quot;));
		items.add(new SelectItem(&quot;2&quot;, &quot;label 2&quot;));
		items.add(new SelectItem(&quot;3&quot;, &quot;label 3&quot;));
	}

	public List&lt;SelectItem&gt; getItems()
	{
		return items;
	}

	public void setItems(List&lt;SelectItem&gt; items)
	{
		this.items = items;
	}
}
</pre>
<p>Note: I&#8217;m using jboss seam in the example above, but you could easily remove the seam annotations and define the bean in using jsf managed beans or faces config etc. Also the examples here are a bit mickey mouse and could be better.</p>
<p>Under JSF 1.2 will be rendered as</p>
<pre class="brush: xml; title: ; notranslate">
&lt;table id=&quot;myForm:aRadio&quot;&gt;
	&lt;tr&gt;
		&lt;td&gt;
			&lt;input type=&quot;radio&quot; name=&quot;myForm:aRadio&quot; id=&quot;myForm:aRadio:0&quot; value=&quot;1&quot; /&gt;
			&lt;label for=&quot;myForm:aRadio:0&quot;&gt;Label 1&lt;/label&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;input type=&quot;radio&quot; name=&quot;myForm:aRadio&quot; id=&quot;myForm:aRadio:1&quot; value=&quot;2&quot; /&gt;
			&lt;label for=&quot;myForm:aRadio:1&quot;&gt;Label 2&lt;/label&gt;
		&lt;/td&gt;
		&lt;td&gt;
			&lt;input type=&quot;radio&quot; name=&quot;myForm:aRadio&quot; id=&quot;myForm:aRadio:2&quot; value=&quot;3&quot; /&gt;
			&lt;label for=&quot;myForm:aRadio:2&quot;&gt;Label 3&lt;/label&gt;
		&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p>Anyway this limitation is well known and as a result we&#8217;ve been using the apache tomahawk <a href="http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_selectOneRadio.html">t:selectOneRadio</a> (using the layout=&#8221;spread&#8221; attribute) and <a href="http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_radio.html">t:radio</a> tags to provide more flexible layouts which can be styled by css.</p>
<p><strong>Iterating through a list of select items</strong></p>
<p>There are times when I want to render the radio buttons in a flexible fashion (offered by t:radio) using a loop tag such as <a href="http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_dataList.html">t:dataList</a> or <a href="http://docs.jboss.org/richfaces/latest_3_3_X/en/tlddoc/a4j/repeat.html">a4j:repeat</a> e.g.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:ui=&quot;http://java.sun.com/jsf/facelets&quot; xmlns:h=&quot;http://java.sun.com/jsf/html&quot; xmlns:f=&quot;http://java.sun.com/jsf/core&quot; xmlns:fn=&quot;http://java.sun.com/jsp/jstl/functions&quot; xmlns:c=&quot;http://java.sun.com/jstl/core&quot; xmlns:t=&quot;http://myfaces.apache.org/tomahawk&quot; xmlns:a4j=&quot;https://ajax4jsf.dev.java.net/ajax&quot;&gt;
&lt;f:view&gt;
&lt;h:form id=&quot;myForm&quot;&gt;
	&lt;!-- radio button, layout spread  --&gt;
	&lt;t:selectOneRadio id=&quot;myRadio&quot; forceId=&quot;true&quot; layout=&quot;spread&quot;&gt;
		&lt;f:selectItems value=&quot;#{radioOptions.items}&quot; /&gt;
	&lt;/t:selectOneRadio&gt;

	&lt;!-- data list, loops through all the radio button options --&gt;
	&lt;t:dataList var=&quot;helper&quot; value=&quot;#{radioOptions.items}&quot; rowIndexVar=&quot;idx&quot;&gt;
		&lt;!-- example html, not constrained to table layout --&gt;
		&lt;h1&gt;Heading&lt;/h1&gt;
		&lt;t:radio for=&quot;myRadio&quot; index=&quot;#{idx}&quot;/&gt;
		&lt;h1&gt;Another Heading&lt;/h1&gt;
	&lt;/t:dataList&gt;
&lt;/h:form&gt;
&lt;/f:view&gt;
&lt;/html&gt;
</pre>
<p>Unfortunately this doesn&#8217;t work and throws:</p>
<pre class="brush: plain; title: ; notranslate">
java.lang.IllegalStateException: Could not find component 'myRadio' (calling findComponent on component 'myForm:j_id3:0:j_id5')
</pre>
<p><strong>The Fix:</strong></p>
<p>I <em>almost always</em> forget this which is why im blogging about it,</p>
<pre class="brush: xml; title: ; notranslate">
&lt;t:radio for=&quot;myRadio&quot; index=&quot;#{idx}&quot;/&gt;
</pre>
<p>needs to be replaced with</p>
<pre class="brush: xml; title: ; notranslate">
&lt;t:radio for=&quot;:myForm:myRadio&quot; index=&quot;#{idx}&quot;/&gt;
</pre>
<p>The tomahawk t:radio component must have the <a href="#fullyQualified"><em>fully qualified</em></a> component name of the t:selectOneRadio name otherwise it cannot find it.</p>
<p>Since the form is defined as:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;h:form id=&quot;myForm&quot;&gt;
</pre>
<p>:myForm needs to be prefixed to the for attribute of the t:radio giving :myForm:myRadio</p>
<p>I take absolutely no credit for this because its explained <a href="https://issues.apache.org/jira/browse/TOMAHAWK-26">here</a> and on the <a href="http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns">Myfaces wiki </a>this article is merely a note to self.</p>
<p>Btw, the above works with a4j:repeat as well as t:datalist</p>
<p><span style="text-decoration: line-through">Currently tomahawk isn&#8217;t working in JSF 2.0 which is a shame as we are looking to upgrade very soon. Hopefully a decent radio button will become part of JSF 2 at some point.</span></p>
<p>The<a href="http://myfaces.apache.org/tomahawk-project/tomahawk20/index.html"> tomahawk </a>component library now works with JSF 2.0</p>
<h5 id="fullyQualified">Update: Fully Qualified JSF Name</h5>
<p>A bit of searching around on the web took me to Lincoln Baxter&#8217;s blog  where he mentions <a href="http://ocpsoft.com/java/jsf2-java/how-to-jsf-2-0-render-components-outside-of-the-form/">rendering  components outside of the form</a> and explains that the first &#8220;:&#8221;  tells JSF to start looking from the very top of the JSF View Root. Thanks for that!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jsfblog.info/2010/05/jsf-iterating-with-tomahawk-radio-buttons-tdatalist-a4jrepeat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maven site generation error: DTDDVFactoryImpl does not extend from DTDDVFactory</title>
		<link>http://www.jsfblog.info/2010/04/maven-site-generation-error-dtddvfactoryimpl-does-not-extend-from-dtddvfactory/</link>
		<comments>http://www.jsfblog.info/2010/04/maven-site-generation-error-dtddvfactoryimpl-does-not-extend-from-dtddvfactory/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 11:35:01 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[exceptions]]></category>
		<category><![CDATA[maven-site-plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[xerces]]></category>

		<guid isPermaLink="false">http://www.jsfblog.info/?p=197</guid>
		<description><![CDATA[When generating a site with Maven, we encountered the following exception when a particular reporting plugin was executed: This basically meant that an incompatible version of xerces was trying to be run. We have everything set to use Java 1.6, which ships with its own version of xerces. After some debugging, it was tracked down [...]]]></description>
			<content:encoded><![CDATA[<p>When generating a site with Maven, we encountered the following exception when a particular reporting plugin was executed:</p>
<pre class="brush: plain; title: ; notranslate">
org.apache.xerces.impl.dv.DVFactoryException:
DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
</pre>
<p>This basically meant that an incompatible version of xerces was trying to be run. We have everything set to use Java 1.6, which ships with its own version of xerces. After some debugging, it was tracked down to the <a title="Maven Site Plugin" href="http://maven.apache.org/plugins/maven-site-plugin/">maven-site-plugin</a> which we had recently upgraded to use version 2.1 of the plugin by specifying it in our pom file like so:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;pluginManagement&gt;
	&lt;plugins&gt;
		&lt;plugin&gt;
			&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
			&lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
			&lt;version&gt;2.1&lt;/version&gt;
		&lt;/plugin&gt;
	&lt;/plugins&gt;
&lt;/pluginManagement&gt;
</pre>
<p>The maven-site-site plugin has the following dependency structure:</p>
<ul>
<li>org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.1
<ul>
<li>org.apache.maven.doxia:doxia-module-xhtml:jar:1.1.2 (compile)
<ul>
<li>org.apache.maven.doxia:doxia-core:jar:1.1.2 (compile)
<ul>
<li>xerces:xercesImpl:jar:2.8.1 (compile)</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>It is the dependency of the xercesImpl jar 2.8.1 that is the problem. To get around this issue, you can tell the maven-site-plugin to exclude a particular dependency. This can be done like so:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;pluginManagement&gt;
	&lt;plugins&gt;
		&lt;plugin&gt;
			&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
			&lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
			&lt;version&gt;2.1&lt;/version&gt;
			&lt;dependencies&gt;
				&lt;dependency&gt;
					&lt;groupId&gt;org.apache.maven.doxia&lt;/groupId&gt;
					&lt;artifactId&gt;doxia-core&lt;/artifactId&gt;
					&lt;version&gt;1.1.2&lt;/version&gt;
					&lt;exclusions&gt;
						&lt;exclusion&gt;
							&lt;groupId&gt;xerces&lt;/groupId&gt;
							&lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
						&lt;/exclusion&gt;
					&lt;/exclusions&gt;
				&lt;/dependency&gt;
			&lt;/dependencies&gt;
		&lt;/plugin&gt;
	&lt;/plugins&gt;
&lt;/pluginManagement&gt;
</pre>
<p>There are a couple of maven reporting plugins that we found produced this exception when run with maven-site-plugin 2.1. These plugins are:</p>
<ul>
<li><a title="DocFlax XML Maven Plugin" href="http://www.filigris.com/downloads/view/docflex_xml/maven/index.html">DocFlex/XML Maven Plugin</a></li>
<li><a title="Canoo Webtest Maven Plugin" href="http://people.apache.org/~sgoeschl/download/maven-plugins/webtest-maven-plugin/site/index.html">Canoo Webtest Maven Plugin</a></li>
</ul>
<p>If you use an older version of the maven-site-plugin then the above mentioned reporting plugins should work ok. It is only when specifying a version of 2.1 or above that the exception occurs.</p>
<p>Some of the solutions suggested on the net didn&#8217;t work for us, like adding the xercesImpl jar as a dependency to the actual reporting plugin in question, so hopefully the solution mentioned in this post is helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jsfblog.info/2010/04/maven-site-generation-error-dtddvfactoryimpl-does-not-extend-from-dtddvfactory/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Suppress logging in java unit tests</title>
		<link>http://www.jsfblog.info/2010/03/suppress-logging-in-java-unit-tests/</link>
		<comments>http://www.jsfblog.info/2010/03/suppress-logging-in-java-unit-tests/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 15:22:05 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[JUnit]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[surefire]]></category>

		<guid isPermaLink="false">http://www.jsfblog.info/?p=110</guid>
		<description><![CDATA[Here are a couple of different ways of suppressing logging when running unit tests. If you are using apache commons logging then you can suppress logging with the following code: If running your unit tests with JUnit, it is probably best to put this code in the setUp() method. However, if you only wanted it [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a couple of different ways of suppressing logging when running unit tests. If you are using <a href="http://commons.apache.org/logging/">apache commons logging</a> then you can suppress logging with the following code:</p>
<pre class="brush: java; title: ; notranslate">
LogFactory.getFactory().setAttribute(
                &quot;org.apache.commons.logging.Log&quot;,
                &quot;org.apache.commons.logging.impl.NoOpLog&quot;);
</pre>
<p>If running your unit tests with JUnit, it is probably best to put this code in the setUp() method. However, if you only wanted it suppressed on particular tests, it could go at the top of the test method instead. Bear in mind that if the logger is a static in the class you are testing, you  may need to then reset the attribute at the end of the test method, otherwise, any tests being run after that one will also have their logging suppressed.</p>
<p>If you run your unit tests within an IDE, you may want to see the logging, but not see the logging when you actually run the build of your project with something like Maven. Thankfully, there is a very simple answer to this if you are using Maven. The maven-surefire-plugin is responsible for running the tests and there is a configuration option which needs to be specified to redirect all the test output to file instead of to the console. This keeps your build reports much cleaner as you aren&#8217;t interested in seeing the logging messages. As a bonus, since all output is saved to file, exceptions will also be output to file, so whenever exceptions are thrown in the methods being tested, the stack trace wont show up in the build report.</p>
<p>The configuration option that needs specifying is <strong>&lt;redirectTestOutputToFile&gt;</strong> and this needs to be set to <strong>true</strong>, as shown below.</p>
<pre class="brush: xml; highlight: [4]; title: ; notranslate">
&lt;plugin&gt;
	&lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
	&lt;configuration&gt;
		&lt;redirectTestOutputToFile&gt;true&lt;/redirectTestOutputToFile&gt;
	&lt;/configuration&gt;
&lt;/plugin&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jsfblog.info/2010/03/suppress-logging-in-java-unit-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

