<?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:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd">

<channel>
	<title>austenconstable.com &#187; maven</title>
	<atom:link href="http://www.austenconstable.com/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.austenconstable.com</link>
	<description>a year in the merde</description>
	<lastBuildDate>Thu, 15 Oct 2009 16:19:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HOWTO: Remove GWT package from url when using gwt-maven</title>
		<link>http://www.austenconstable.com/2009/03/13/howto-remove-gwt-package-from-url-when-using-gwt-maven/</link>
		<comments>http://www.austenconstable.com/2009/03/13/howto-remove-gwt-package-from-url-when-using-gwt-maven/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 14:49:05 +0000</pubDate>
		<dc:creator>Austen</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.austenconstable.com/?p=193</guid>
		<description><![CDATA[Seriously, who wants a url like /my.long.package.name.Application/Application.html To remedy this use the following steps: Make the webapp directory the same as the output for your gwt code. ... &#60;plugin&#62; &#60;groupId&#62;org.apache.maven.plugins&#60;/groupId&#62; &#60;artifactId&#62;maven-war-plugin&#60;/artifactId&#62; &#60;configuration&#62; &#60;webappDirectory&#62;${project.build.directory}/${project.build.finalName}/my.long.package.name.Application &#60;/webappDirectory&#62; &#60;/configuration&#62; &#60;/plugin&#62; ... Ensure that your &#8230; <a href="http://www.austenconstable.com/2009/03/13/howto-remove-gwt-package-from-url-when-using-gwt-maven/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Seriously, who wants a url like /my.long.package.name.Application/Application.html</p>
<p>To remedy this use the following steps:</p>
<ol>
<li>Make the webapp directory the same as the output for your gwt code.

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.apache.maven.plugins<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-war-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;webappDirectory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${project.build.directory}/${project.build.finalName}/my.long.package.name.Application	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/webappDirectory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...</pre></div></div>

</li>
<li>Ensure that your rpc servlets don&#8217;t have the package as a prefix.

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.totsp.gwt<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-googlewebtoolkit2-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		...
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;webXmlServletPathAsIs<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/webXmlServletPathAsIs<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...</pre></div></div>

</li>
<li>Change your index.html file to point to your app.<br />
From:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;REFRESH&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0;url=my.long.package.name.Application/Application.html&quot;</span>&gt;</span></pre></div></div>

<p>To:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;REFRESH&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0;url=Application.html&quot;</span>&gt;</span></pre></div></div>

</li>
<li>Your done.</li>
</ol>
<p>Additional resources:<br />
<a href="http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f8b06676098b8cc6" onclick="pageTracker._trackPageview('/outgoing/groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f8b06676098b8cc6?referer=');">http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f8b06676098b8cc6</a></p>
<p><a href="http://groups.google.com/group/gwt-maven/browse_thread/thread/a46f540ca823e3d3/7d5febf0776958db?lnk=gst&amp;q=rename#7d5febf0776958db" onclick="pageTracker._trackPageview('/outgoing/groups.google.com/group/gwt-maven/browse_thread/thread/a46f540ca823e3d3/7d5febf0776958db?lnk=gst_amp_q=rename_7d5febf0776958db&amp;referer=');">http://groups.google.com/group/gwt-maven/browse_thread/thread/a46f540ca823e3d3/7d5febf0776958db?lnk=gst&amp;q=rename#7d5febf0776958db</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.austenconstable.com/2009/03/13/howto-remove-gwt-package-from-url-when-using-gwt-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Run your java web app as the root context on Tomcat</title>
		<link>http://www.austenconstable.com/2009/03/13/howto-run-your-java-web-app-as-the-root-context-on-tomcat/</link>
		<comments>http://www.austenconstable.com/2009/03/13/howto-run-your-java-web-app-as-the-root-context-on-tomcat/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 10:21:30 +0000</pubDate>
		<dc:creator>Austen</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.austenconstable.com/?p=186</guid>
		<description><![CDATA[If you have a context XML fragment in your war (META-INF/context.xml) then it&#8217;s as easy as renaming your war file to ROOT.war If you&#8217;re using the maven build system then just alter your pom to have: &#60;build&#62; &#60;finalName&#62;ROOT&#60;/finalName&#62; ... &#60;/build&#62; &#8230; <a href="http://www.austenconstable.com/2009/03/13/howto-run-your-java-web-app-as-the-root-context-on-tomcat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have a context XML fragment in your war (<code>META-INF/context.xml</code>) then it&#8217;s as easy as renaming your war file to <code>ROOT.war</code></p>
<p>If you&#8217;re using the maven build system then just alter your pom to have:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;finalName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ROOT<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/finalName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Simple when you know how&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.austenconstable.com/2009/03/13/howto-run-your-java-web-app-as-the-root-context-on-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Setup a shell Java Struts 2 web app using Maven 2 &amp; Eclipse 3.4</title>
		<link>http://www.austenconstable.com/2008/11/26/howto-setup-a-shell-java-struts-2-web-app-using-maven-2-eclipse-34/</link>
		<comments>http://www.austenconstable.com/2008/11/26/howto-setup-a-shell-java-struts-2-web-app-using-maven-2-eclipse-34/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 16:17:16 +0000</pubDate>
		<dc:creator>Austen</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[struts2]]></category>

		<guid isPermaLink="false">http://www.austenconstable.com/?p=180</guid>
		<description><![CDATA[The latest project I&#8217;m working on is a Java web app using Struts 2. I wanted to use the eclipse IDE since it&#8217;s industry standard and the Maven 2 build system for compatibility with other company projects. I did plenty &#8230; <a href="http://www.austenconstable.com/2008/11/26/howto-setup-a-shell-java-struts-2-web-app-using-maven-2-eclipse-34/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The latest project I&#8217;m working on is a Java web app using Struts 2. I wanted to use the eclipse IDE since it&#8217;s industry standard and the Maven 2 build system for compatibility with other company projects.</p>
<p>I did plenty of reading (<a href="http://books.sonatype.com/maven-book/" onclick="pageTracker._trackPageview('/outgoing/books.sonatype.com/maven-book/?referer=');">Maven: The Definitive Guide</a> is a good place to start), but nowhere did I find an easy step-by-step quickstart for this combination of tools.</p>
<p>So I&#8217;ve pieced my reading and research together and here it is:</p>
<h3>Prerequisites</h3>
<p>Java<br />
maven 2<br />
eclipse 3.4.1</p>
<h3>Create a new skeleton project:</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>workspace<span style="color: #000000; font-weight: bold;">/&lt;/</span>br<span style="color: #000000; font-weight: bold;">&gt;</span>
mvn archetype:generate <span style="color: #660033;">-DgroupId</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>name of your group e.g. com.austenconstable<span style="color: #7a0874; font-weight: bold;">&#125;</span> \
<span style="color: #660033;">-DartifactId</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>name of your app<span style="color: #7a0874; font-weight: bold;">&#125;</span> \
<span style="color: #660033;">-DarchetypeGroupId</span>=org.apache.struts \
<span style="color: #660033;">-DarchetypeArtifactId</span>=struts2-archetype-starter \
<span style="color: #660033;">-DarchetypeVersion</span>=2.0.11.2</pre></td></tr></table></div>

<p>If you&#8217;re not sure on the latest struts 2 archetype release version check <a href="http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-starter/" onclick="pageTracker._trackPageview('/outgoing/repo1.maven.org/maven2/org/apache/struts/struts2-archetype-starter/?referer=');">here</a>.</p>
<h3>Generate the eclipse project files:</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mvn eclipse:eclipse</pre></div></div>

<h3>Configure eclipse:</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mvn eclipse:configure-workspace -Declipse.workspace=<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>workspace<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<h3>Import the project into eclipse:</h3>
<p>Fire up eclipse and use File>Import&#8230;</p>
<p>And now all you need to do is build your app!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.austenconstable.com/2008/11/26/howto-setup-a-shell-java-struts-2-web-app-using-maven-2-eclipse-34/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

