<?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; Maven best practices</title>
	<atom:link href="http://blog.sonatype.com/people/tag/maven-best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.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>Thu, 16 May 2013 18:53:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>The best Maven how-tos from the Sonatype blog</title>
		<link>http://blog.sonatype.com/people/2011/07/the-best-maven-how-tos-from-the-sonatype-blog/</link>
		<comments>http://blog.sonatype.com/people/2011/07/the-best-maven-how-tos-from-the-sonatype-blog/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 13:00:00 +0000</pubDate>
		<dc:creator>Brian Fox</dc:creator>
				<category><![CDATA[Maven]]></category>
		<category><![CDATA[Sonatype]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Maven best practices]]></category>

		<guid isPermaLink="false">http://www.sonatype.com/people/?p=8461</guid>
		<description><![CDATA[Sonatype is going through the archives and digging up articles that we think would be useful to developers using our tools. If you use Maven, keep reading the post below from Sonatype Vice President of Engineering Brian Fox on Maven best practices and how-tos. We have a handful of Maven best practice and how-tos documented [...]]]></description>
				<content:encoded><![CDATA[<p><em>Sonatype is going through the archives and digging up articles that we think would be useful to developers using our tools. If you use Maven, keep reading the post below from Sonatype Vice President of Engineering Brian Fox on Maven best practices and how-tos.</em></p>

<hr />

<p>We have a handful of Maven best practice and how-tos documented in  the blogs. Over time they get buried by newer posts, but the content is  still just as relevant. Learn more about Maven by checking out the following blogs:
<img title="More..." src="http://www.sonatype.com/people/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>

<p><a href="http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/">(1) Why Putting Repositories in your pom is a bad idea</a></p>

<p>How to properly manage repository definitions and why you shouldn&#8217;t declare them in your poms.</p>

<p><a href="http://www.sonatype.com/people/2009/01/best-practices-for-releasing-with-3rd-party-snapshot-dependencies/">(2) Best Practices for Releasing with 3rd Party Snapshot Dependencies</a></p>

<p>How to most effectively create your own internal release of a snapshot dependency.</p>

<p><a href="http://www.sonatype.com/people/2009/01/maven-continuous-integration-best-practices/">(3) Maven Continuous Integration Best Practices</a></p>

<p>Multiple techniques for running Maven builds from a CI system.</p>

<p><span id="more-8461"></span></p>

<p><a href="http://www.sonatype.com/people/2008/05/maven-code-how-to-detect-if-you-have-a-snapshot-version/">(4) How to Detect if you have a Snapshot Version</a></p>

<p>See the code that Maven uses to detect a snapshot  version. This is helpful if you have non-standard release versions to  make sure they won&#8217;t be detected by Maven as a snapshot.</p>

<p><a href="http://www.sonatype.com/people/2008/05/optimal-maven-plugin-configuration/">(5) Optimal Maven Plugin Configuration</a></p>

<p>Tips on how to configure plugins in a way that  makes it easier to understand what is happening in your pom.</p>

<p><a href="http://www.sonatype.com/people/2008/05/adding-additional-source-folders-to-your-maven-build/">(6) Adding additional source folders to your Maven build</a></p>

<p>How to use the <em>buildhelper</em> plugin to add additional  source folders to your build. This is common if you have tools that  generate sources that don&#8217;t have a Maven plugin to add the source folder  automatically.</p>

<p><a href="http://www.sonatype.com/people/2008/05/misused-maven-terms-defined/">(7) Misused Maven Terms Defined</a></p>

<p>Find out about several terms that are often misquoted. This post also specifically discusses classifiers and attached artifacts.</p>

<p><a href="http://www.sonatype.com/people/2008/04/how-to-override-a-plugins-dependency-in-maven/">(8) How to override a plugin&#8217;s dependency</a></p>

<p>How to override a plugin dependency in your own  pom&#8230;for example if you want to use a newer version of a tool wrapped  by a plugin (pmd, checkstyle, cobertura are common examples)</p>

<p><a href="http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/">(9) How to share resources across projects</a></p>

<p>How to share resources in a repeatable way  without using relative paths in your poms. It also shows a technique for  sharing <em>checkstyle</em> and pmd configurations across all your modules.</p>

<p><a href="http://www.sonatype.com/people/2008/04/maven-209-released/">(10) How Plugin versions are determined</a></p>

<p>Learn about how Maven determines which version of a plugin to use, and why  you should use <em>PluginManagement</em> to control the versions yourself.</p>

<p><a href="http://www.sonatype.com/people/2009/04/how-to-convert-from-ant-to-maven-in-5-minutes/">(11) How to convert from Ant to Maven in 5 minutes</a></p>

<p>Okay so it might take longer than 5 minutes to convert from Ant to Maven, but this post will show you that it is possible to work the migration in parallel so that most of  your team sees the conversion happen very quickly when the time is  right.</p>

<p><a href="http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/">(12) How to make an executable JAR</a></p>

<p>Step-by-step instructions on how to make a standalone JAR (i.e. one with no dependencies) executable.</p>

<p>&nbsp;</p>

<p><strong>Note: If you have suggestions for further topics, please leave a comment with your ideas.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sonatype.com/people/2011/07/the-best-maven-how-tos-from-the-sonatype-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
