<?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; quickstart</title>
	<atom:link href="http://blog.code-adept.com/tag/quickstart/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>Thu, 09 Feb 2012 01:15:14 +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://s2.wp.com/i/buttonw-com.png</url>
		<title>Code Adept &#187; quickstart</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>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&amp;blog=2511053&amp;post=6&amp;subd=codeadept&amp;ref=&amp;feed=1" width="1" height="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>
<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>
<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>
<p><pre class="brush: xml;">
...
&lt;modules&gt;
    &lt;module&gt;sampleModule&lt;/module&gt;
&lt;/modules&gt;
...</pre></p>
<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/gofacebook/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codeadept.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codeadept.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=2511053&amp;post=6&amp;subd=codeadept&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.code-adept.com/2008/01/14/maven-multi-module-quickstart/feed/</wfw:commentRss>
		<slash:comments>5</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>
