<?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>Nils Preusker &#187; development</title>
	<atom:link href="http://www.nilspreusker.de/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nilspreusker.de</link>
	<description>Pragmatic Technologist</description>
	<lastBuildDate>Tue, 23 Mar 2010 10:44:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Maven Dependency Conflicts</title>
		<link>http://www.nilspreusker.de/2009/09/24/maven-dependency-conflicts/</link>
		<comments>http://www.nilspreusker.de/2009/09/24/maven-dependency-conflicts/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 14:05:50 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[mvn]]></category>

		<guid isPermaLink="false">http://www.nilspreusker.de/?p=270</guid>
		<description><![CDATA[Have you ever seen an exception like this:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'XY' defined in class path resource
[applicationContext.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.
BeanInstantiationException: Could not instantiate bean class
[XY]: Constructor threw exception; nested exception is
java.lang.LinkageError: You are trying to run JAXB 2.0 runtime
(from jar:file:/.../WEB-INF/lib/jaxb-impl-2.1.8.jar!/com/sun/
xml/bind/v2/model/impl/ModelBuilder.class)but you have old
JAXB 1.0 runtime earlier in the classpath (at [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever seen an exception like this:</p>
<pre>org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'XY' defined in class path resource
[applicationContext.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.
BeanInstantiationException: Could not instantiate bean class
[XY]: Constructor threw exception; nested exception is
java.lang.LinkageError: You are trying to run JAXB 2.0 runtime
(from jar:file:/.../WEB-INF/lib/jaxb-impl-2.1.8.jar!/com/sun/
xml/bind/v2/model/impl/ModelBuilder.class)but you have old
JAXB 1.0 runtime earlier in the classpath (at jar:file:
/.../WEB-INF/lib/jaxb-impl-1.0.4.jar!/com/sun/xml/bind/
WhiteSpaceProcessor.class) Please remove the JAXB 1.0
runtime for 2.0 runtime to work correctly.</pre>
<p>Well, I have, several times&#8230; and the task of having to figure out which library causes this dependency conflict seemed <span style="text-decoration: line-through;">unresolvable</span> pretty scary at first! Luckily, there is the m2eclipse plug-in with its excellent dependency graph. So if you are using Eclipse, whether you are actually using m2eclipse to manage your project or not, just the dependency graph makes it worth having a look at it. I still run my maven tasks on the command line, but have m2eclipse installed, just to be able to use the graph.</p>
<p><img title="Dependency Graph" src="http://www.nilspreusker.de/wp-content/uploads/2009/09/dep-graph.png" alt="Dependency Graph" /></p>
<p>After identifying which library is causing the dependency conflict, all you have to do is to add an &#8220;exclude&#8221; node to that dependency in your pom.xml. In the above case, this snipped did the trick:</p>
<pre>&lt;dependency&gt;
    &lt;groupId&gt;...&lt;/groupId&gt;
    &lt;artifactId&gt;...&lt;/artifactId&gt;
    &lt;version&gt;...&lt;/version&gt;
    <strong>&lt;exclusions&gt;
        &lt;exclusion&gt;
</strong><strong>            &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
            &lt;groupId&gt;javax.xml&lt;/groupId&gt;
        &lt;/exclusion&gt;
        ...
    &lt;/exclusions&gt;</strong>
&lt;/dependency&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nilspreusker.de/2009/09/24/maven-dependency-conflicts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find out which applications are listening to which port on Mac OSX</title>
		<link>http://www.nilspreusker.de/2009/09/11/find-out-which-applications-are-listening-to-which-port-on-mac-osx/</link>
		<comments>http://www.nilspreusker.de/2009/09/11/find-out-which-applications-are-listening-to-which-port-on-mac-osx/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 16:31:07 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.nilspreusker.de/?p=254</guid>
		<description><![CDATA[If you ever wonder which ports are open on your OS X machine, or whether e.g. jboss is still running, this command will help you:
$sudo lsof -Pi &#124; grep -i "listen"
FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
Man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
]]></description>
			<content:encoded><![CDATA[<p>If you ever wonder which ports are open on your OS X machine, or whether e.g. jboss is still running, this command will help you:</p>
<pre>$sudo lsof -Pi | grep -i "listen"</pre>
<p>FAQ: <a title="FAQ" href="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ" target="_blank">ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ</a><br />
Man page: <a title="Man Page" href="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man" target="_blank">ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nilspreusker.de/2009/09/11/find-out-which-applications-are-listening-to-which-port-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different Maven Versions on OS X</title>
		<link>http://www.nilspreusker.de/2009/04/24/different-maven-versions-on-os-x/</link>
		<comments>http://www.nilspreusker.de/2009/04/24/different-maven-versions-on-os-x/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:06:08 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.nilspreusker.de/?p=246</guid>
		<description><![CDATA[I keep running into the problem that different projects I&#8217;m working on require different versions of maven. I have two versions installed, maven 2.0.6 in /usr/share/maven-2.0.6 and maven 2.0.9 in /usr/share/maven. To find out which version of maven you are running, open a terminal and type the following
$ mvn --version
Maven version: 2.0.9
Java version: 1.6.0_07
OS name: [...]]]></description>
			<content:encoded><![CDATA[<p>I keep running into the problem that different projects I&#8217;m working on require different versions of maven. I have two versions installed, maven 2.0.6 in /usr/share/maven-2.0.6 and maven 2.0.9 in /usr/share/maven. To find out which version of maven you are running, open a terminal and type the following</p>
<pre>$ mvn --version
Maven version: 2.0.9
Java version: 1.6.0_07
OS name: "mac os x" version: "10.5.6" arch: "x86_64" Family: "mac"</pre>
<p>In this case, maven 2.0.9 is running, so we&#8217;ll see how to switch to maven 2.0.6. First we need to know where the maven executable, or in this case, the symbolic link to the executable is located:</p>
<pre>$ which mvn
/usr/bin/mvn</pre>
<p>Next, we&#8217;ll use ls to check where the symbolic link is pointing:</p>
<pre>$ ls -l /usr/bin/mvn
lrwxr-xr-x  1 root  wheel  24 Apr 24 14:26 /usr/bin/mvn -&gt; /usr/share/maven/bin/mvn</pre>
<p>Finally, if you have different maven versions installed, you can switch between them by overwriting the symbolic link:</p>
<pre>$ sudo ln -fhsv /usr/share/maven-2.0.6/bin/mvn /usr/bin/mvn</pre>
<p>After providing your password, the symbolic link should now be pointing to the maven 2.0.6 executable. To doublecheck, type</p>
<pre>$ mvn --version</pre>
<p>The output should be something like this</p>
<pre>Maven version: 2.0.6</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nilspreusker.de/2009/04/24/different-maven-versions-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overview of reliable open source frameworks</title>
		<link>http://www.nilspreusker.de/2008/12/19/overview-of-reliable-open-source-frameworks/</link>
		<comments>http://www.nilspreusker.de/2008/12/19/overview-of-reliable-open-source-frameworks/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 14:02:39 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.nilspreusker.de/?p=80</guid>
		<description><![CDATA[In a Time of Less, Do More with Open Source: Top 25 Open Source Projects That Will Help Trim Development Budgets
Palamida published a useful list of reliable open source frameworks on their blog. There are no surprises on the list but they put it in relation to the person years it took to create these [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>In a Time of Less, Do More with Open Source: Top 25 Open Source Projects That Will Help Trim Development Budgets</p></blockquote>
<p>Palamida published a useful <a title="25 OSS Frameworks" href="http://www.palamida.com/blogs/25-hot-open-source-projects-organizations-should-be-using-today" target="_blank">list </a>of reliable open source frameworks on their blog. There are no surprises on the list but they put it in relation to the person years it took to create these frameworks. Interesting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nilspreusker.de/2008/12/19/overview-of-reliable-open-source-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
