<?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>Matt Conroy &#187; Java</title>
	<atom:link href="http://www.mattconroy.com/index.php/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattconroy.com</link>
	<description>My NoLedge</description>
	<lastBuildDate>Thu, 24 Jun 2010 21:11:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Compiling an Apache Maven Project</title>
		<link>http://www.mattconroy.com/index.php/2009/04/04/compiling-an-apache-maven-project/</link>
		<comments>http://www.mattconroy.com/index.php/2009/04/04/compiling-an-apache-maven-project/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 17:02:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mattconroy.com/index.php/2009/04/04/compiling-an-apache-maven-project/</guid>
		<description><![CDATA[Compiling a Maven project was pretty darn easy. You simply run the command mvn compile. This command tells maven to compile the source code into classes. The classes end up in the target/classes dir and target/test-classes dir.
Running mvn package will build a jar of the project. The version used in the jar name is contained [...]]]></description>
			<content:encoded><![CDATA[<p>Compiling a Maven project was pretty darn easy. You simply run the command mvn compile. This command tells maven to compile the source code into classes. The classes end up in the target/classes dir and target/test-classes dir.</p>
<p>Running mvn package will build a jar of the project. The version used in the jar name is contained inside the main level pom.xml.</p>
<p>pom.xml</p>
<pre>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</project>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
<modelversion>4.0.0</modelversion>
<groupid>com.mattconroy.project</groupid>
<artifactid>TestProject</artifactid>
<packaging>jar</packaging>   <version>1.0-SNAPSHOT</version>
<name>TestProject</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupid>junit</groupid>
<artifactid>junit</artifactid>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</pre>
<p>Notice the <version> tag sets the jar version name.</version></p>
<p>So what does this buy us? We can now install our built component into a local or remote respository for use in other projects or run the program to do some business logic. Obviously we are far from having a complete product since we are missing libraries and other meta data needed to have a easily maintainable project, but this gives us a template to build off of.</p>
<p class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=5356b6f3-95ae-8548-9bec-2de16ba8cc47" class="zemanta-pixie-img" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattconroy.com/index.php/2009/04/04/compiling-an-apache-maven-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an Apache Maven Project</title>
		<link>http://www.mattconroy.com/index.php/2009/04/04/creating-an-apache-maven-project/</link>
		<comments>http://www.mattconroy.com/index.php/2009/04/04/creating-an-apache-maven-project/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 16:29:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mattconroy.com/index.php/2009/04/04/creating-an-apache-maven-project/</guid>
		<description><![CDATA[Well, I am finally taking the plunge into Apache Maven. I have found that managing dependencies is becoming unbearable and Maven is being used by several open source project that I use so&#8230; Here I go, one step at a time.
My first question was obvious: How do I create a new Maven project?
After a few [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I am finally taking the plunge into Apache Maven. I have found that managing dependencies is becoming unbearable and Maven is being used by several open source project that I use so&#8230; Here I go, one step at a time.</p>
<p>My first question was obvious: How do I create a new Maven project?</p>
<p>After a few minutes of searching I ended up on the Maven website reading the &#8216;<a href="http://maven.apache.org/guides/getting-started/index.html">Getting Started</a>&#8216; faq and found the very cryptic command on starting a project.</p>
<pre>mvn archetype:create -DgroupId=com.mattconroy.project -DartificatId=TestProject</pre>
<p>After running the above command I ended up with a directory structure that is suppose to magically work to build and maintain a project. Well, we&#8217;ll see.</p>
<p>The structure of the project:</p>
<p>TestProject<br />
- pom.xml<br />
- src<br />
- main<br />
- java<br />
- com/mattconroy/project<br />
- App.java<br />
- test<br />
- java<br />
- com/mattconroy/project<br />
- AppTest.java</p>
<p>So this makes sense&#8230; One directory for program code and another for program unit tests. I can live with this.</p>
<p class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=09944970-0557-8328-9df4-1ff28013dda0" class="zemanta-pixie-img" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattconroy.com/index.php/2009/04/04/creating-an-apache-maven-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goofy Flash Javascript Movie</title>
		<link>http://www.mattconroy.com/index.php/2008/03/10/goofy-flash-javascript-movie/</link>
		<comments>http://www.mattconroy.com/index.php/2008/03/10/goofy-flash-javascript-movie/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 21:48:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dinking Around]]></category>

		<guid isPermaLink="false">http://www.mattconroy.com/index.php/2008/03/10/goofy-flash-javascript-movie/</guid>
		<description><![CDATA[A friend of mine finds things like this all the time. Watch this silent movie. Very witty!
http://users.telenet.be/kixx/
]]></description>
			<content:encoded><![CDATA[<p>A friend of mine finds things like this all the time. Watch this silent movie. Very witty!</p>
<p><a href="http://users.telenet.be/kixx/">http://users.telenet.be/kixx/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattconroy.com/index.php/2008/03/10/goofy-flash-javascript-movie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Kid Match Game in Java</title>
		<link>http://www.mattconroy.com/index.php/2007/11/30/5/</link>
		<comments>http://www.mattconroy.com/index.php/2007/11/30/5/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 23:40:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dinking Around]]></category>

		<guid isPermaLink="false">http://localhost/blog/?p=5</guid>
		<description><![CDATA[This is the source code for a quick color matching game I wrote for fun.
It is very rough, but does demonstrate some examples of using full screen windows.
If you have any questions send me an email. See Java Source Code
]]></description>
			<content:encoded><![CDATA[<p>This is the source code for a quick color matching game I wrote for fun.<br />
It is very rough, but does demonstrate some examples of using full screen windows.<br />
If you have any questions send me an email. See <a href="http://www.mattconroy.com/wp-content/uploads/2008/01/kidwindow.java" title="Java Source Code">Java Source Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattconroy.com/index.php/2007/11/30/5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
