<?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>fiveclouds &#187; maven</title>
	<atom:link href="http://www.fiveclouds.com/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fiveclouds.com</link>
	<description>collaboration, creativity and the next big thing</description>
	<lastBuildDate>Tue, 25 May 2010 11:06:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Deploying HBase to your local Maven repo</title>
		<link>http://www.fiveclouds.com/2009/04/13/deploying-hbase-to-your-local-maven-repo/</link>
		<comments>http://www.fiveclouds.com/2009/04/13/deploying-hbase-to-your-local-maven-repo/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 01:33:33 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[hadoop]]></category>
		<category><![CDATA[hbase]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.fiveclouds.com/?p=148</guid>
		<description><![CDATA[<p>I have been working on <a href="http://hadoop.apache.org">Hadoop</a> and <a href="http://hadoop.apache.org/hbase">HBase</a> lately, and one of the first things I hit was the fact that they aren&#8217;t in a Maven repo.  I found this <a href="http://methodsignature.blogspot.com/2008/08/hadoop-hbase-with-maven2.html">blog post</a> which got me started, but I thought I would push out an update for the new HBase 0.19.1 release.</p>
<p>Grab the HBase POM <a href="http://fiveclouds.s3.amazonaws.com/hbase.pom">here</a> (not official) and then set HBASE_HOME and run the <a href="http://fiveclouds.s3.amazonaws.com/deploy-deps.sh">deploy_deps.sh </a>script.</p>
<p>Hope it helps :)</p>
]]></description>
			<content:encoded><![CDATA[<p>I have been working on <a href="http://hadoop.apache.org">Hadoop</a> and <a href="http://hadoop.apache.org/hbase">HBase</a> lately, and one of the first things I hit was the fact that they aren&#8217;t in a Maven repo.  I found this <a href="http://methodsignature.blogspot.com/2008/08/hadoop-hbase-with-maven2.html">blog post</a> which got me started, but I thought I would push out an update for the new HBase 0.19.1 release.</p>
<p>Grab the HBase POM <a href="http://fiveclouds.s3.amazonaws.com/hbase.pom">here</a> (not official) and then set HBASE_HOME and run the <a href="http://fiveclouds.s3.amazonaws.com/deploy-deps.sh">deploy_deps.sh </a>script.</p>
<p>Hope it helps :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fiveclouds.com/2009/04/13/deploying-hbase-to-your-local-maven-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mixing Maven and Warbler</title>
		<link>http://www.fiveclouds.com/2008/10/19/mixing-maven-and-warbler/</link>
		<comments>http://www.fiveclouds.com/2008/10/19/mixing-maven-and-warbler/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 23:01:46 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[warbler]]></category>

		<guid isPermaLink="false">http://www.fiveclouds.com/?p=81</guid>
		<description><![CDATA[<p>I have recently been working on mixing together a Ruby on Rails application with an Enterprise app.   Initially I was looking into doing it with Goldspike, however after picking up that it was going out of fashion and being replaced with Warbler I decided to use that.   I couldn&#8217;t find any clear documentation on setting up Warbler with Maven (while Goldspike came with a plugin) &#8211; so I decided to try and pull it together so that I could incorporate the Rails app into a larger Java product.</p>
<p>First of all I wanted to put my Rails application&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I have recently been working on mixing together a Ruby on Rails application with an Enterprise app.   Initially I was looking into doing it with Goldspike, however after picking up that it was going out of fashion and being replaced with Warbler I decided to use that.   I couldn&#8217;t find any clear documentation on setting up Warbler with Maven (while Goldspike came with a plugin) &#8211; so I decided to try and pull it together so that I could incorporate the Rails app into a larger Java product.</p>
<p>First of all I wanted to put my Rails application into a Maven like directory structure so I created /src/main/rails and put the app in there,  then I knocked up a pretty standard POM for a WAR file.  Next up I wanted to Warble the project so I first up I installed the gem.</p>
<pre class="brush: xml;">pdodds:(svn)trunk[trunk:4184]/src/main/rails$ sudo gem install warbler
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed warbler-0.9.11
1 gem installed
Installing ri documentation for warbler-0.9.11...
Installing RDoc documentation for warbler-0.9.11...
pdodds:(svn)trunk[trunk:4184]/src/main/rails$
</pre>
<p>Then I pluginize the Warble so that it will be available in my project using <code>warble pluginize</code>.</p>
<p>Next up I wanted to get my Maven pom sorted out &#8211; the quickest way I could find to get Warble integrated was through the jruby-rake-plugin.  Adding the following plugin to my pom.xml ensures that the gems that I need are installed by the jruby plugin and then warble can be called in the compile phase.</p>
<pre class="brush: xml;">&lt;plugin&gt;
	&lt;groupId&gt;org.jruby.plugins&lt;/groupId&gt;
	&lt;artifactId&gt;jruby-rake-plugin&lt;/artifactId&gt;
	&lt;version&gt;1.1.4&lt;/version&gt;
	&lt;executions&gt;
		&lt;execution&gt;
			&lt;id&gt;install-gems&lt;/id&gt;
			&lt;phase&gt;process-resources&lt;/phase&gt;
				&lt;goals&gt;
					&lt;goal&gt;install-gems&lt;/goal&gt;
				&lt;/goals&gt;
				&lt;configuration&gt;
					&lt;gems&gt;warbler,rails&lt;/gems&gt;
				&lt;/configuration&gt;
		&lt;/execution&gt;
		&lt;execution&gt;
				&lt;id&gt;build-war&lt;/id&gt;
				&lt;phase&gt;compile&lt;/phase&gt;
				&lt;goals&gt;
					&lt;goal&gt;rake&lt;/goal&gt;
				&lt;/goals&gt;
				&lt;configuration&gt;
					&lt;launchDirectory&gt;${basedir}/src/main/rails
					&lt;/launchDirectory&gt;
			    	        &lt;args&gt;war:clean war&lt;/args&gt;
				&lt;/configuration&gt;
	           &lt;/execution&gt;
	&lt;/executions&gt;
&lt;/plugin&gt;
</pre>
<p>In the first instance of the execution of the jruby plugin we pull down and install the gems that we are going to use,  in the second we actually call the Warble goals in the project to create the WAR file.</p>
<p>In order to quickly integrate this process with the standard WAR building in Maven we need to configure the Maven WAR plugin,  you could also change the Warble output but in the end I found this way worked when I wanted to use the Jetty plugin.</p>
<pre class="brush: xml;">&lt;plugin&gt;
	&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
	&lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
	&lt;configuration&gt;
		&lt;webappDirectory&gt;${basedir}/src/main/rails/tmp&lt;/webappDirectory&gt;
        &lt;/configuration&gt;
&lt;/plugin&gt;</pre>
<p>While this is pretty brief hopefully it helps others get going and I&#8217;m very open to alternate or better ways to achieve the same goal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fiveclouds.com/2008/10/19/mixing-maven-and-warbler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JBoss EJB3 and Maven</title>
		<link>http://www.fiveclouds.com/2008/08/12/jboss-ejb3-and-maven/</link>
		<comments>http://www.fiveclouds.com/2008/08/12/jboss-ejb3-and-maven/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 02:12:52 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[ejb3]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.fiveclouds.com/?p=55</guid>
		<description><![CDATA[<p>I have just recently been working on some more technical stuff &#8211; and I have to admit it is really nice to be back in the code.  Working with a couple of start-ups on the East coast lately I have been pottering around with some JBoss 4/5 and EJB3 configurations.   Since I&#8217;m going to be running around again soon &#8211; I thought I would blog a few bits and pieces on technology while I&#8217;m about it.</p>
<p>The first thing I noticed about pulling Maven and JBoss together was that the EJB packaging didn&#8217;t seem quite as intuitive as I thought.  In&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I have just recently been working on some more technical stuff &#8211; and I have to admit it is really nice to be back in the code.  Working with a couple of start-ups on the East coast lately I have been pottering around with some JBoss 4/5 and EJB3 configurations.   Since I&#8217;m going to be running around again soon &#8211; I thought I would blog a few bits and pieces on technology while I&#8217;m about it.</p>
<p>The first thing I noticed about pulling Maven and JBoss together was that the EJB packaging didn&#8217;t seem quite as intuitive as I thought.  In the end I did end up using the EJB plugin and the dependency plugin to get the dependencies in place.  This meant including both the plugins in an EJB parent POM.</p>
<pre class="brush: xml;">&lt;plugin&gt;
&lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;archive&gt;
&lt;manifest&gt;
&lt;addClasspath&gt;true&lt;/addClasspath&gt;
&lt;/manifest&gt;
&lt;/archive&gt;
&lt;ejbVersion&gt;3.0&lt;/ejbVersion&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-dependency-plugin
&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;copy&lt;/id&gt;
&lt;phase&gt;compile&lt;/phase&gt;
&lt;goals&gt;
&lt;goal&gt;copy-dependencies&lt;/goal&gt;
&lt;/goals&gt;
&lt;configuration&gt;
&lt;outputDirectory&gt;target/classes&lt;/outputDirectory&gt;
&lt;excludeScope&gt;provided&lt;/excludeScope&gt;
&lt;/configuration&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
</pre>
<p>With that code in place you just need to ensure you set the packaging to EJB on your EJB&#8217;s.  I thought that copying the dependencies into the target was probably the nicest way,  also you need to watch your dependencies and ensure that those you don&#8217;t want to use have a scope of provided so they they don&#8217;t get bundled.  At first I thought that the dependency embedding should have been part of the EJB plugin,  but actually given the power of the dependency plugin it actually made more sense to use that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fiveclouds.com/2008/08/12/jboss-ejb3-and-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
