<?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>Cobertura &#8211; My Shitty Code</title>
	<atom:link href="https://myshittycode.com/tag/cobertura/feed/" rel="self" type="application/rss+xml" />
	<link>https://myshittycode.com</link>
	<description>Embracing the Messiness in Search of Epic Solutions</description>
	<lastBuildDate>Fri, 06 Jan 2023 17:23:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://myshittycode.com/wp-content/uploads/2022/04/cropped-icon-32x32.png</url>
	<title>Cobertura &#8211; My Shitty Code</title>
	<link>https://myshittycode.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">205304208</site>	<item>
		<title>Configuring Cobertura Exclusion to Work with Maven Site</title>
		<link>https://myshittycode.com/2013/08/23/configuring-cobertura-exclusion-to-work-with-maven-site/</link>
					<comments>https://myshittycode.com/2013/08/23/configuring-cobertura-exclusion-to-work-with-maven-site/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Fri, 23 Aug 2013 21:02:08 +0000</pubDate>
				<category><![CDATA[Programming Language]]></category>
		<category><![CDATA[Cobertura]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=15</guid>

					<description><![CDATA[<p>PROBLEM The Cobertura Maven Plugin doesn&#8217;t respect the exclusion configuration. For example, if you have the following pom.xml, the exclusion configuration does absolutely nothing when you execute mvn site. SOLUTION To fix this, you will need to define the Cobertura Maven Plugin under both &#60;build&#62; and &#60;reporting&#62;.</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2013/08/23/configuring-cobertura-exclusion-to-work-with-maven-site/">Configuring Cobertura Exclusion to Work with Maven Site</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">PROBLEM</h2>



<p>The Cobertura Maven Plugin doesn&#8217;t respect the exclusion configuration. For example, if you have the following pom.xml, the exclusion configuration does absolutely nothing when you execute <b>mvn site</b>.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;project ...=&quot;&quot;&gt;
	...
	&lt;reporting&gt;
		&lt;plugins&gt;
			&lt;plugin&gt;
				&lt;groupid&gt;org.codehaus.mojo&lt;/groupid&gt;
				&lt;artifactid&gt;cobertura-maven-plugin&lt;/artifactid&gt;
				&lt;version&gt;2.5.2&lt;/version&gt;
				&lt;configuration&gt;
					&lt;instrumentation&gt;
						&lt;excludes&gt;
							&lt;exclude&gt;**/wsdl2java/**&lt;/exclude&gt;
						&lt;/excludes&gt;
					&lt;/instrumentation&gt;
					&lt;formats&gt;
						&lt;format&gt;html&lt;/format&gt;
						&lt;format&gt;xml&lt;/format&gt;
					&lt;/formats&gt;
					&lt;check&gt;
				&lt;/check&gt;&lt;/configuration&gt;
			&lt;/plugin&gt;
		&lt;/plugins&gt;
	&lt;/reporting&gt;
&lt;/project&gt;
</pre></div>


<h2 class="wp-block-heading">SOLUTION</h2>



<p>To fix this, you will need to define the Cobertura Maven Plugin under both <b>&lt;build&gt;</b> and <b>&lt;reporting&gt;</b>.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;project ...=&quot;&quot;&gt;
	...
	&lt;build&gt;
		&lt;plugins&gt;
			&lt;plugin&gt;
				&lt;groupid&gt;org.codehaus.mojo&lt;/groupid&gt;
				&lt;artifactid&gt;cobertura-maven-plugin&lt;/artifactid&gt;
				&lt;version&gt;2.5.2&lt;/version&gt;
				&lt;configuration&gt;
					&lt;instrumentation&gt;
						&lt;excludes&gt;
							&lt;exclude&gt;**/wsdl2java/**&lt;/exclude&gt;
						&lt;/excludes&gt;
					&lt;/instrumentation&gt;
					&lt;formats&gt;
						&lt;format&gt;html&lt;/format&gt;
						&lt;format&gt;xml&lt;/format&gt;
					&lt;/formats&gt;
					&lt;check&gt;
				&lt;/check&gt;&lt;/configuration&gt;
			&lt;/plugin&gt;
		&lt;/plugins&gt;
	&lt;/build&gt;
	&lt;reporting&gt;
		&lt;plugins&gt;
			&lt;plugin&gt;
				&lt;groupid&gt;org.codehaus.mojo&lt;/groupid&gt;
				&lt;artifactid&gt;cobertura-maven-plugin&lt;/artifactid&gt;
				&lt;version&gt;2.5.2&lt;/version&gt;
				&lt;configuration&gt;
					&lt;instrumentation&gt;
						&lt;excludes&gt;
							&lt;exclude&gt;**/wsdl2java/**&lt;/exclude&gt;
						&lt;/excludes&gt;
					&lt;/instrumentation&gt;
					&lt;formats&gt;
						&lt;format&gt;html&lt;/format&gt;
						&lt;format&gt;xml&lt;/format&gt;
					&lt;/formats&gt;
					&lt;check&gt;
				&lt;/check&gt;&lt;/configuration&gt;
			&lt;/plugin&gt;
		&lt;/plugins&gt;
	&lt;/reporting&gt;
&lt;/project&gt;
</pre></div><p>The post <a rel="nofollow" href="https://myshittycode.com/2013/08/23/configuring-cobertura-exclusion-to-work-with-maven-site/">Configuring Cobertura Exclusion to Work with Maven Site</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2013/08/23/configuring-cobertura-exclusion-to-work-with-maven-site/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">15</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 58/67 queries in 0.017 seconds using Disk

Served from: myshittycode.com @ 2026-02-21 12:43:34 by W3 Total Cache
-->