<?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; eclipse</title>
	<atom:link href="http://www.austenconstable.com/tag/eclipse/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.0.1</generator>
		<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>
