<?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>VolkomenJuist.nl &#187; Maven</title>
	<atom:link href="http://www.volkomenjuist.nl/blog/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.volkomenjuist.nl/blog</link>
	<description>Juist! Volkomen Juist!</description>
	<lastBuildDate>Mon, 18 Jul 2011 20:00:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create a Wicket project by using an Archetype</title>
		<link>http://www.volkomenjuist.nl/blog/2009/01/24/create-a-wicket-project-by-using-an-archetype/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/01/24/create-a-wicket-project-by-using-an-archetype/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 21:57:26 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Wicket]]></category>
		<category><![CDATA[Archetype]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=5</guid>
		<description><![CDATA[This article describes step-by-step how to setup a Wicket Quickstart project by using Maven2 Archetype. After finishing all steps you&#8217;ll be able to run the Quickstart project in your favourite webbrowser. I assume that you already have a Java Development Kit (JDK) installed. Now lets get started. 1. Software Download the latest stable versions from the following websites. JDK (http://java.sun.com/javase/downloads/) Maven2 (http://maven.apache.org/download.html) [...]]]></description>
			<content:encoded><![CDATA[<p>This article describes step-by-step how to setup a Wicket Quickstart project by using Maven2 Archetype. After finishing all steps you&#8217;ll be able to run the Quickstart project in your favourite webbrowser. I assume that you already have a Java Development Kit (JDK) installed. Now lets get started.</p>
<p><span id="more-5"></span></p>
<h2>1. Software</h2>
<p>Download the latest stable versions from the following websites.</p>
<ul>
<li>JDK (<a href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2phdmEuc3VuLmNvbS9qYXZhc2UvZG93bmxvYWRzLw==">http://java.sun.com/javase/downloads/</a>)</li>
<li>Maven2 (<a href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL21hdmVuLmFwYWNoZS5vcmcvZG93bmxvYWQuaHRtbA==">http://maven.apache.org/download.html</a>)</li>
<li>Eclipse  (<a href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5lY2xpcHNlLm9yZy9kb3dubG9hZHMv">http://www.eclipse.org/downloads/</a>)</li>
</ul>
<h2>2. Maven2</h2>
<ol>
<li>Unzip the downloaded file to a location of your choice. e.g &#8220;D:\Programming\apache-maven-2.0.9\&#8221;</li>
<li>Create a M2_HOME system variable<br />
- Press WinKey + Pause or go to Settings -&gt; Control Panel -&gt; System. Now a System Properties dialog will appear. Go to Advanced -&gt; Environment Variables. <br />
- Press New and create a new system variable with name <code>M2_HOME</code> and value <code>D:\Programming\apache-maven-2.0.9</code> Press OK</li>
<li> M2_HOME is added to the system variables. In the same list you&#8217;ll find  a &#8220;Path&#8221; variable. Edit this variable and add <code>%M2_HOME%\bin;</code> to the end of the list.  <br />
Make sure that there is also a <code>JAVA_HOME</code> system variable pointing to your JDK and the value <code>%JAVA_HOME%\bin;</code>  in your path variable.</li>
<li>Close all dialogs and go to the command line by pressing WinKey + R or Start -&gt; Run and type <code>cmd.exe</code>, press Enter.</li>
<li>On the commandline type <code>mvn --version</code> press Enter and if everything is configured correct you will see Maven&#8217;s version number. <br />
If it is not working properly close the command line by typing <code>exit</code> Enter and re-open the command line (see step 4).</p>
<p><div id="attachment_93" class="wp-caption aligncenter" style="width: 607px"><img class="size-full wp-image-93" title="mavenversion" src="http://www.volkomenjuist.nl/blog/wp-content/uploads/2009/01/mavenversion.jpg" alt="Output Maven" width="597" height="177" /><p class="wp-caption-text">Output Maven</p></div></li>
</ol>
<h2>3. Maven2 Repository</h2>
<p>By default Maven will create a local repository (.m2/repository) in your $user folder. If you want to specify the location of the local repository, create a file in $user/.m2/ called &#8220;settings.xml&#8221;. This file should contain the following lines. Change path if needed.</p>
<pre class="brush: xml; title: ; notranslate">&lt;settings&gt;
&lt;localRepository&gt;d:\programming\repository&lt;/localRepository&gt;
&lt;/settings&gt;</pre>
<h2>4. Archetype (Creating the project)</h2>
<ol>
<li>On the commandline go to your workspace directory e.g. &#8220;D:\Programming\Workspaces&#8221; by typing <code>d:</code> Enter and afterwards <code>cd Programming\Workspaces</code> Enter.</li>
<li>Type <code>mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.5 -DgroupId=com.mycompany -DartifactId=myproject</code> and press Enter.<br />
This will download all dependencies which are necessary and create a Maven2 project structure. It will create a directory with the name &#8220;myproject&#8221; in your workspaces directory and some Wicket quickstart files (in package &#8220;com.mycompany&#8221;). It will use Wicket version 1.3.5. You can change those properties to your needs!<br />
 </li>
</ol>
<h2> 5. Run Wicket&#8217;s Quickstart project</h2>
<ol>
<li>When everything is downloaded succesfull go to your project directory (&#8220;D:\Programming\Workspaces\myProject&#8221;) 
<div id="attachment_109" class="wp-caption aligncenter" style="width: 487px"><img class="size-full wp-image-109" title="mavenarchetypefinish" src="http://www.volkomenjuist.nl/blog/wp-content/uploads/2009/01/mavenarchetypefinish.jpg" alt="Maven Archetype created successfull" width="477" height="285" /><p class="wp-caption-text">Maven Archetype created successfull</p></div>
<p> </li>
<li>Type <code>mvn jetty:run</code> and wait till it is completely started. The first time it will take some time.</li>
<li>Open your favourite browser and browse to <a href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2xvY2FsaG9zdDo4MDgwL215cHJvamVjdA==">http://localhost:8080/myproject</a></li>
<li>Now you will see a Wicket page.</li>
</ol>
<h2>6. Eclipse (optional)</h2>
<ol>
<li>If you want to play around with the quickstart project. You have to import the project in your IDE. Before doing this you have to go to your project directory and type <code>mvn eclipse:eclipse -DdownloadSources=true</code> press Enter<br />
This will create some files for you to import the project in Eclipse.</li>
<li>Open Eclipse, go to File -&gt; Import</li>
<li>Go to General -&gt; Existing Projects in Workspace</li>
<li>Press Browse and point to your project directory. Press Finish.</li>
<li>Now the project will be loaded in Eclipse and is ready for you to make changes.</li>
</ol>
<h2>7. Software used for this article</h2>
<ul>
<li>JDK 1.6.0</li>
<li>Maven 2.0.9</li>
<li>Eclipse 3.4.0</li>
<li>Windows XP / Vista</li>
</ul>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=5" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/01/24/create-a-wicket-project-by-using-an-archetype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

