<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>K3andme &#187; maven</title>
	<atom:link href="http://k3andme.wordpress.com/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://k3andme.wordpress.com</link>
	<description>Java, Maven, NetBeans et al</description>
	<lastBuildDate>Wed, 26 Nov 2008 21:21:41 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='k3andme.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/05a444d01cf598e80ff5465f9f87d4b0?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>K3andme &#187; maven</title>
		<link>http://k3andme.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://k3andme.wordpress.com/osd.xml" title="K3andme" />
		<item>
		<title>Maven and log4j</title>
		<link>http://k3andme.wordpress.com/2008/11/07/maven-and-log4j/</link>
		<comments>http://k3andme.wordpress.com/2008/11/07/maven-and-log4j/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 15:23:19 +0000</pubDate>
		<dc:creator>k3andme</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://k3andme.wordpress.com/?p=25</guid>
		<description><![CDATA[I noticed a newer version of log4j (1.2.15) and figured I&#8217;d upgrade in our maven projects.
My advice is to avoid it&#8230; some unnecessary dependencies are forced so you end up with lots of extra jars. Hope they fix it soon.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=k3andme.wordpress.com&blog=5273037&post=25&subd=k3andme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I noticed a newer version of <a href="http://logging.apache.org/log4j/1.2/download.html">log4j (1.2.15)</a> and figured I&#8217;d upgrade in our <a href="http://maven.apache.org/">maven</a> projects.</p>
<p>My advice is to <strong>avoid</strong> it&#8230; some unnecessary dependencies are forced so you end up with lots of extra jars. Hope they fix it soon.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k3andme.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k3andme.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k3andme.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k3andme.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k3andme.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k3andme.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k3andme.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k3andme.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k3andme.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k3andme.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=k3andme.wordpress.com&blog=5273037&post=25&subd=k3andme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://k3andme.wordpress.com/2008/11/07/maven-and-log4j/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0543dd2391cafdecd5c8b5a2d63b051?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">k3andme</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting Ant to Maven in NetBeans</title>
		<link>http://k3andme.wordpress.com/2008/10/30/converting-ant-to-maven-in-netbeans/</link>
		<comments>http://k3andme.wordpress.com/2008/10/30/converting-ant-to-maven-in-netbeans/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 19:05:02 +0000</pubDate>
		<dc:creator>k3andme</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://k3andme.wordpress.com/?p=12</guid>
		<description><![CDATA[After a good couple of days spent converting ant projects over to maven, here is what I consider the easiest method. This is using NetBeans 6.5rc1 but probably works in 6.1.
Here are the steps for converting an ant project to a maven project in NetBeans.
This presumes your ~/.m2/settings.xml is already set up (not shown here [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=k3andme.wordpress.com&blog=5273037&post=12&subd=k3andme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After a good couple of days spent converting <a href="http://ant.apache.org/" target="_blank">ant</a> projects over to <a href="http://maven.apache.org/" target="_blank">maven</a>, here is what I consider the easiest method. This is using <a href="http://www.netbeans.org/">NetBeans</a> 6.5rc1 but probably works in 6.1.</p>
<p>Here are the steps for converting an ant project to a <a href="http://maven.apache.org/">maven</a> project in <a href="http://www.netbeans.org/">NetBeans</a>.<br />
This presumes your ~/.m2/settings.xml is already set up (not shown here for security purposes) and you have installed the <a href="http://www.netbeans.org/">Netbeans</a> <a href="http://maven.apache.org/">maven2</a> plugin:</p>
<p>1. Open ant project<br />
2. Create new maven project using the &#8220;<a href="http://maven.apache.org/">Maven</a> Quickstart Archetype&#8221;<br />
3. Properties -&gt; Sources -&gt; Change to 1.6<br />
4. pom.xml -&gt; Add distribution management</p>
<pre>&lt;distributionManagement&gt;
  &lt;repository&gt;
    &lt;id&gt;nexus&lt;/id&gt;
    &lt;name&gt;Internal Releases&lt;/name&gt;
    &lt;url&gt;<em>YourInternalReleaseURL</em>&lt;/url&gt;
  &lt;/repository&gt;
&lt;/distributionManagement&gt;</pre>
<p>5. Files tab -&gt; src/main -&gt; add folder &#8220;resources&#8221;. This will create an &#8220;Other Sources/resources&#8221; entry in the project view<br />
6. Delete existing source and test package stubs<br />
7. Copy java sources and test sources across from ant project<br />
8. Move all config xml files (such as applicationContext.xml) over to &#8220;Other Sources/resources&#8221;<br />
9. If you have any <a href="http://www.hibernate.org/">hibernate</a> .hbm.xml files, create a folder structure under &#8220;Other Sources/resources&#8221; identical to the package structure, and copy the files to there<br />
10. Resolve dependencies. The easiest way to do this is go through red-underlined classes, copy the missing required classname, right-click the libraries node and hit &#8220;Find Dependency&#8221;<br />
11. If a dependency is purely for a test class, add &#8220;&lt;scope&gt;test&lt;/scope&gt;&#8221; to reduce the resulting jar filesize<br />
12. mvn install or deploy</p>
<p>If the <a href="http://ant.apache.org/">ant</a> project exposes a WebService:<br />
1. Add the following plugin to the pom.xml:</p>
<pre>&lt;plugin&gt;
  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
  &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt;
  &lt;executions&gt;
    &lt;execution&gt;
      &lt;goals&gt;
        &lt;goal&gt;wsimport&lt;/goal&gt;
      &lt;/goals&gt;
      &lt;configuration&gt;
        &lt;wsdlUrls&gt;
          &lt;wsdlUrl&gt;<em>yourWSDLExposedUrl</em>&lt;/wsdlUrl&gt;
        &lt;/wsdlUrls&gt;
        &lt;packageName&gt;<em>yourWSClientPackageName</em>&lt;/packageName&gt;
        &lt;sourceDestDir&gt;${basedir}/src/main/java&lt;/sourceDestDir&gt;
      &lt;/configuration&gt;
    &lt;/execution&gt;
  &lt;/executions&gt;
&lt;/plugin&gt;</pre>
<p>2. Change the wsdl location and packageName as necessary. Without the sourceDestDir, the generated sources live under target/ and code completion won&#8217;t work. Setting the package name to the same package as the ws-client solves this. Compilation works either way.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k3andme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k3andme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k3andme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k3andme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k3andme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k3andme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k3andme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k3andme.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k3andme.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k3andme.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=k3andme.wordpress.com&blog=5273037&post=12&subd=k3andme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://k3andme.wordpress.com/2008/10/30/converting-ant-to-maven-in-netbeans/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0543dd2391cafdecd5c8b5a2d63b051?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">k3andme</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven dependency graph in NetBeans</title>
		<link>http://k3andme.wordpress.com/2008/10/23/maven-dependency-graph-in-netbeans/</link>
		<comments>http://k3andme.wordpress.com/2008/10/23/maven-dependency-graph-in-netbeans/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 15:57:14 +0000</pubDate>
		<dc:creator>k3andme</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dependency]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://k3andme.wordpress.com/?p=5</guid>
		<description><![CDATA[Earlier today, we noticed one the maven war files was being bundled with the geronimo-spec-javamail.jar. Unfortunately, the other projects use the standard java mail.jar. The presence of 2 seperate mail jars under the same tomcat instance has been causing us mime-type conflicts.
Hot-deploying worked though so we figured it was something to do with bundled jars.
In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=k3andme.wordpress.com&blog=5273037&post=5&subd=k3andme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Earlier today, we noticed one the <a href="http://maven.apache.org/" target="_blank">maven</a> war files was being bundled with the geronimo-spec-javamail.jar. Unfortunately, the other projects use the standard java mail.jar. The presence of 2 seperate mail jars under the same tomcat instance has been causing us mime-type conflicts.</p>
<p>Hot-deploying worked though so we figured it was something to do with bundled jars.</p>
<p>In NetBeans, the geronimo jar appeared greyed out in the list of libraries, indicating a transitive dependency. How to work out which jar is at the root of this dependency?</p>
<ol>
<li>Tools -&gt; Plugins -&gt; Install &#8220;Maven Dependency Graphs&#8221;</li>
<li>Return to project</li>
<li>Right-click the Libraries node and select &#8220;Show Library Dependency Graph&#8221;</li>
<li>Here, just type in the jar you want to trace and it reduces the graph to just a single tree</li>
</ol>
<p>The plugin is still in beta, but it saved me lots of time so I would recommend it.</p>
<p>Update:</p>
<p>Unfortunately, this plugin was available in 6.5Beta but not in 6.5RC1. Hopefully it&#8217;ll make a comeback soon.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k3andme.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k3andme.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k3andme.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k3andme.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k3andme.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k3andme.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k3andme.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k3andme.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k3andme.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k3andme.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=k3andme.wordpress.com&blog=5273037&post=5&subd=k3andme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://k3andme.wordpress.com/2008/10/23/maven-dependency-graph-in-netbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0543dd2391cafdecd5c8b5a2d63b051?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">k3andme</media:title>
		</media:content>
	</item>
	</channel>
</rss>