<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Code Adept &#187; Maven</title>
	<atom:link href="http://blog.code-adept.com/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.code-adept.com</link>
	<description>Random thoughts on Agile development and other things geeky.</description>
	<lastBuildDate>Wed, 17 Feb 2010 22:29:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.code-adept.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/edb361b7afb00fde970428c0df6650df?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Code Adept &#187; Maven</title>
		<link>http://blog.code-adept.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.code-adept.com/osd.xml" title="Code Adept" />
	<atom:link rel='hub' href='http://blog.code-adept.com/?pushpress=hub'/>
		<item>
		<title>New Flex Maven plugin on the block</title>
		<link>http://blog.code-adept.com/2008/03/26/new-flex-maven-plugin-on-the-block/</link>
		<comments>http://blog.code-adept.com/2008/03/26/new-flex-maven-plugin-on-the-block/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 17:22:28 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[RIA]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[funit]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://codeadept.wordpress.com/?p=31</guid>
		<description><![CDATA[I&#8217;ve recently discovered a new player in the Flex/Maven plugin game called Flex Mojos.  This one is slightly different than the other ones that I&#8217;ve seen in that it&#8217;s using the new Java based compiler API just released with Flex 3.  One nice side effect is that it appears to be much faster than the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=31&subd=codeadept&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently discovered a new player in the Flex/Maven plugin game called <a href="http://blog.flex-mojos.info/" target="_blank">Flex Mojos</a>.  This one is slightly different than the other ones that I&#8217;ve seen in that it&#8217;s using the new <a href="http://blogs.adobe.com/flexdoc/2008/01/compiler_api.html" target="_blank">Java based compiler API</a> just released with Flex 3.  One nice side effect is that it appears to be much faster than the previous plugins.  I&#8217;ll be keeping my eye on this one to hopefully implement a decent integration with FlexUnit or even better <a href="http://funit.org" target="_blank">FUnit</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codeadept.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codeadept.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeadept.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeadept.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeadept.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeadept.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeadept.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeadept.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeadept.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeadept.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeadept.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeadept.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=31&subd=codeadept&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.code-adept.com/2008/03/26/new-flex-maven-plugin-on-the-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/611c688725819bb23742a714a9c33dfe?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jeremy</media:title>
		</media:content>
	</item>
		<item>
		<title>Analyzing Dependencies With the Maven Site Plugin</title>
		<link>http://blog.code-adept.com/2008/01/16/analyzing-dependencies-with-the-maven-site-plugin/</link>
		<comments>http://blog.code-adept.com/2008/01/16/analyzing-dependencies-with-the-maven-site-plugin/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 20:49:00 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Maven]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://codeadept.wordpress.com/2008/01/16/analyzing-dependencies-with-the-maven-site-plugin/</guid>
		<description><![CDATA[Now as most people will tell you I&#8217;m kind of a geek when it comes to Maven. It&#8217;s really a nice tool and it makes dependency management in large projects almost a no brainer&#8230;almost. The story I&#8217;m about to share is true, only the names have been changed to protect the innocent&#8230; A couple of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=20&subd=codeadept&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Now as most people will tell you I&#8217;m kind of a geek when it comes to Maven. It&#8217;s really a nice tool and it makes dependency management in large projects almost a no brainer&#8230;almost. The story I&#8217;m about to share is true, only the names have been changed to protect the innocent&#8230;<span id="more-20"></span></p>
<p>A couple of weeks ago we were having some clashes in one of our applications due to an older version of log4j showing up on the classpath. So what could have been like finding a needle in a haystack was actually fairly simple to track down, if you only know where to look.  Thankfully, some of my ranting and raving about Maven has rubbed off at this client. They took some of my suggestions as far as Maven-izing their new projects and have even seen the benefits of using the site plugin to generate project documentation. In this case, the site plugin is what ended up saving us. In the site documentation that is generated there are a couple of reports called, oddly enough, &#8220;Dependencies&#8221; and &#8220;Dependency Convergence&#8221;.</p>
<h4>Dependency Convergence</h4>
<p>The Dependency Convergence report is especially nice when dealing with large multi-module projects. At this client it is normal for each project to contain anywhere from 3 &#8211; 7 modules and maintaining a pom.xml for each one can sometimes lead to versions getting out of sync between modules. This report analyzes all of the dependency versions that appear in all of the modules for the project, and compares them to the versions of the dependencies defined for this particular module.</p>
<p>At the top of the report you&#8217;ll see the summary. In this specific report you&#8217;ll see that this module has quite a few mismatched versions being defined as dependencies.</p>
<p><a href="http://codeadept.files.wordpress.com/2008/01/dependency-stats1.png" title="Dependency Convergence Summary"><img src="http://codeadept.files.wordpress.com/2008/01/dependency-stats1.png?w=510" alt="Dependency Convergence Summary" /></a></p>
<p>The rest of the report consists of an itemized list of every dependency that is defined in the module and this is where you can see what the discrepancies are, if any.</p>
<p><a href="http://codeadept.files.wordpress.com/2008/01/dependency-convergence.png" title="Dependency Convergence"><img src="http://codeadept.files.wordpress.com/2008/01/dependency-convergence.png?w=510" alt="Dependency Convergence" /></a></p>
<h4>Dependencies</h4>
<p>The Dependencies report is the one that actually saved us some serious investigation. We had just gone through and removed any explicit dependencies on log4j, since we were using commons-logging and Weblogic provides log4j for us. Somehow log4j kept showing up on the classpath, and it was an older version which had a method with a different signature than what was provided by Weblogic, so it was still causing problems. So along comes the dependency report to the rescue. The top of the report lists out what dependencies are defined and in what scope, followed by any transitive dependencies. A little further down the report is a section that actually gives a tree-view of your dependencies so you can see the hierarchy. Here is where we discovered that displaytag was the culprit.</p>
<p><a href="http://codeadept.files.wordpress.com/2008/01/dependency-hierarchy.png" title="Dependency Tree"><img src="http://codeadept.files.wordpress.com/2008/01/dependency-hierarchy.png?w=510" alt="Dependency Tree" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codeadept.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codeadept.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeadept.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeadept.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeadept.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeadept.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeadept.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeadept.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeadept.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeadept.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeadept.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeadept.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=20&subd=codeadept&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.code-adept.com/2008/01/16/analyzing-dependencies-with-the-maven-site-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/611c688725819bb23742a714a9c33dfe?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jeremy</media:title>
		</media:content>

		<media:content url="http://codeadept.files.wordpress.com/2008/01/dependency-stats1.png" medium="image">
			<media:title type="html">Dependency Convergence Summary</media:title>
		</media:content>

		<media:content url="http://codeadept.files.wordpress.com/2008/01/dependency-convergence.png" medium="image">
			<media:title type="html">Dependency Convergence</media:title>
		</media:content>

		<media:content url="http://codeadept.files.wordpress.com/2008/01/dependency-hierarchy.png" medium="image">
			<media:title type="html">Dependency Tree</media:title>
		</media:content>
	</item>
		<item>
		<title>Viva la RIA-volution</title>
		<link>http://blog.code-adept.com/2008/01/14/viva-la-ria-volution/</link>
		<comments>http://blog.code-adept.com/2008/01/14/viva-la-ria-volution/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 00:56:22 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[RIA]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://code-adept.com/2008/01/14/viva-la-ria-volution/</guid>
		<description><![CDATA[Recently I’ve started working with Flex again after a long hiatus from the technology, and now I remember why I fell in love with the concept of Rich Internet Applications. I learned Flex a few years ago and due to the high cost of its server side components needed to run the applications I never [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=9&subd=codeadept&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I’ve started working with Flex again after a long hiatus from the technology, and now I remember why I fell in love with the concept of Rich Internet Applications.<span>  </span>I learned Flex a few years ago and due to the high cost of its server side components needed to run the applications I never found a home for it in any of my applications.<span>  </span>So when I heard the news about Adobe open-sourcing Flex and making the SDK free as well as developing a free open source replacement for its LiveCycle Data Services called <a href="http://labs.adobe.com/technologies/blazeds/">BlazeDS</a>, I figured it was time to re-introduce myself to the Flex world.<span>  </span>I’ve even found a promising Maven 2 plugin for building flex-apps here (<a href="http://code.google.com/p/israfil-mojo">http://code.google.com/p/israfil-mojo</a>).<span>  </span>Unfortunately it doesn’t support Flex 3 yet, or have a way to run my FlexUnit tests automatically, but I found it easier to use so far than the ServeBox plugin.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codeadept.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codeadept.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeadept.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeadept.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeadept.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeadept.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeadept.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeadept.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeadept.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeadept.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeadept.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeadept.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=9&subd=codeadept&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.code-adept.com/2008/01/14/viva-la-ria-volution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/611c688725819bb23742a714a9c33dfe?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jeremy</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven Multi-Module Quickstart</title>
		<link>http://blog.code-adept.com/2008/01/14/maven-multi-module-quickstart/</link>
		<comments>http://blog.code-adept.com/2008/01/14/maven-multi-module-quickstart/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 00:35:15 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Maven]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[quickstart]]></category>

		<guid isPermaLink="false">http://code-adept.com/2008/01/14/maven-multi-module-quickstart/</guid>
		<description><![CDATA[Recently I&#8217;ve had lots of questions about how to create multi-module projects, so when I discovered this technique, I thought I&#8217;d write this up. This technique exploits a little known feature of the archetype:create plugin, and the Maven site archetype to kickstart your project. Creating a multi-module project has many benefits, one of them being [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=6&subd=codeadept&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve had lots of questions about how to create multi-module projects, so when I discovered this technique, I thought I&#8217;d write this up. This technique exploits a little known feature of the archetype:create plugin, and the Maven site archetype to kickstart your project. Creating a multi-module project has many benefits, one of them being the ability to build every artifact in a project with one simple &#8220;mvn compile&#8221; command. Another benefit is that if you are using either the maven eclipse:eclipse plugin or the idea:idea plugin, you can enter this command at the root of the project and it will generate all of the project files for all of the contained modules.<span id="more-6"></span></p>
<p>First generate the top level project using the maven-archetype-site-simple archetype using the following command,</p>
<pre>mvn archetype:create
 -DgroupId=[Java:the project's group id]
 -DartifactId=[Java:the project's artifact id]
 -DarchetypeArtifactId=maven-archetype-site-simple</pre>
<p>this will generate a Maven project with the following directory structure.</p>
<p><a title="Maven Site Simple Folder" href="http://codeadept.files.wordpress.com/2008/01/maven-archetype-site-simple.png"><img src="http://codeadept.files.wordpress.com/2008/01/maven-archetype-site-simple.png?w=510" alt="Maven Site Simple Folder" /></a></p>
<p>The project that is generated is the minimum project setup to generate site documentation. The index.apt file is the main index page for the site, and is written in the Almost Plain Text format, which is a wiki like format. You can also generate a more complete site project using the maven-archetype-site archetype like this,</p>
<pre>mvn archetype:create
 -DgroupId=[Java:the project's group id]
 -DartifactId=[Java:the project's artifact id]
 -DarchetypeArtifactId=maven-archetype-site</pre>
<p>this will generate the following project structure.</p>
<p><a title="Maven Site Folder Structure" href="http://codeadept.files.wordpress.com/2008/01/maven-archetype-site.png"><img src="http://codeadept.files.wordpress.com/2008/01/maven-archetype-site.png?w=510" alt="Maven Site Folder Structure" /></a></p>
<p>After you have generated the site project, edit the pom.xml created from the site archetype plugin. Make sure the the packaging type is set to &#8220;pom&#8221; like the following.</p>
<pre class="brush: xml;">
&lt;project&gt;
    &lt;modelversion&gt;4.0.0&lt;/modelversion&gt;
    &lt;groupid&gt;com.pillartechnology&lt;/groupid&gt;
    &lt;artifactid&gt;sampleProject&lt;/artifactid&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
&lt;packaging&gt;pom&lt;/packaging&gt;
...
&lt;/project&gt;</pre>
<p>By setting the packaging type to &#8220;pom&#8221;, any projects you generate from the root of the project directory will insert itself into the project by creating an entry into the modules section of the pom.xml for the site. In the root directory of your project that you created above, type in the following command,</p>
<pre>mvn archetype:create
 -DgroupId=[Java:the module's group id]
 -DartifactId=[Java:the module's artifact id]</pre>
<p>if you now edit the pom.xml for the main project, you should see an entry towards the bottom of the file like the following.</p>
<pre class="brush: xml;">
...
&lt;modules&gt;
    &lt;module&gt;sampleModule&lt;/module&gt;
&lt;/modules&gt;
...</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codeadept.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codeadept.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codeadept.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codeadept.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codeadept.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codeadept.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codeadept.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.code-adept.com&blog=2511053&post=6&subd=codeadept&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.code-adept.com/2008/01/14/maven-multi-module-quickstart/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/611c688725819bb23742a714a9c33dfe?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jeremy</media:title>
		</media:content>

		<media:content url="http://codeadept.files.wordpress.com/2008/01/maven-archetype-site-simple.png" medium="image">
			<media:title type="html">Maven Site Simple Folder</media:title>
		</media:content>

		<media:content url="http://codeadept.files.wordpress.com/2008/01/maven-archetype-site.png" medium="image">
			<media:title type="html">Maven Site Folder Structure</media:title>
		</media:content>
	</item>
	</channel>
</rss>