<?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>Sonatype Blog &#187; Sonar</title>
	<atom:link href="http://www.sonatype.com/people/tag/sonar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sonatype.com/people</link>
	<description>Sonatype is transforming software development with tools, information and services that enable organizations to build better software, faster, using open-source components.</description>
	<lastBuildDate>Wed, 23 May 2012 14:24:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Maven 3 and Sonar</title>
		<link>http://www.sonatype.com/people/2010/08/maven-3-and-sonar/</link>
		<comments>http://www.sonatype.com/people/2010/08/maven-3-and-sonar/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 12:00:50 +0000</pubDate>
		<dc:creator>Anders Hammar</dc:creator>
				<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven 3]]></category>
		<category><![CDATA[Sonar]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=6020</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.sonatype.com/people/2010/08/maven-3-and-sonar/' addthis:title='Maven 3 and Sonar '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Another step towards a final release of Maven 3.0 was made the other day when version 3.0-beta-2 was released. I’ve been using Maven 3 since its alpha days, and despite the alpha/beta moniker, I find it to be superior to any Maven 2.x version. If you are starting a new project, I strongly recommend using [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.sonatype.com/people/2010/08/maven-3-and-sonar/' addthis:title='Maven 3 and Sonar '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><a href="http://www.sonatype.com/people/wp-content/uploads/2009/10/maven.png"><img class="alignright size-full wp-image-3145" title="maven" src="http://www.sonatype.com/people/wp-content/uploads/2009/10/maven.png" alt="" width="250" height="72" /></a>Another step towards a final release of Maven 3.0 was made the other day when version <a href="http://maven.apache.org/docs/3.0-beta-2/release-notes.html" target="_blank">3.0-beta-2 </a>was released.  I’ve been using Maven 3 since its alpha days, and despite the  alpha/beta moniker, <a href="http://www.sonatype.com/people/2009/11/maven-30-new-and-improved-formula/" target="_blank">I find it to be superior to any Maven 2.x  version</a>. If you are starting a new project, I strongly recommend using Maven 3.</p>

<p>That being said,  in the complete development environment there are a few missing  pieces when working with Maven 3. One of these is getting Sonar to  work with Maven 3, which had not been possible until the latest version  of Sonar was released.</p>

<p>This post will explain how to get Maven 3 and Sonar to work together.</p>

<p><span id="more-6020"></span>
To  get started, the first thing you must do is install Sonar 2.2 and  Maven 3.0-beta-1 or later. No extra configuration of Sonar is required  for Maven 3, and <a href="http://docs.codehaus.org/display/SONAR/Install+Sonar#InstallSonar-Step5ConfigureMaven2" target="_blank">the same configuration of properties in Maven also  applies</a>. Please note that the URL for the Sonar server &#8212; sonar.host.url &#8212; must not end with a slash character.</p>

<p>The  difference when using Maven 3 lies in the Maven plugin. Currently,  the plugin at <a href="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-1" target="_blank">Codehaus Mojo</a> doesn’t work with  Maven 3, so you need to use the one at the <a href="org.codehaus.sonar:sonar-maven3-plugin:2.2" target="_blank">Sonar project</a> instead.</p>

<p>Now, in your Maven  project, execute the command below.  Until  the Sonar Maven plugin at Codehaus Mojo is updated with Maven 3  support, this is the command to use:</p>

<p><strong>mvn org.codehaus.sonar:sonar-maven3-plugin:2.2:sonar</strong></p>

<p>Your project should now be analyzed and the result uploaded to Sonar.</p>

<p>One thing to be aware of is that  you need to align the version of sonar-maven3-plugin with the version of  Sonar that is installed. When you upgrade Sonar, you need to change the  version on the Maven side as well.</p>

<p>To view the progress of Maven 3 support in the plugin at Codehaus Mojo, follow <a href="http://jira.codehaus.org/browse/MOJO-1545" target="_blank">MOJO-1545</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sonatype.com/people/2010/08/maven-3-and-sonar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

