<?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>Dark Views &#187; Maven2</title>
	<atom:link href="http://blog.pdark.de/tag/maven2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pdark.de</link>
	<description>Opinions and views about computers, writing SciFi and everything else.</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:43:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.pdark.de' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7741f06d762e6a53700b2915f21e3d77?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Dark Views &#187; Maven2</title>
		<link>http://blog.pdark.de</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.pdark.de/osd.xml" title="Dark Views" />
	<atom:link rel='hub' href='http://blog.pdark.de/?pushpress=hub'/>
		<item>
		<title>RC1 of Testing Ready For Testing [Updated]</title>
		<link>http://blog.pdark.de/2011/05/15/rc1-of-testing-ready-for-testing/</link>
		<comments>http://blog.pdark.de/2011/05/15/rc1-of-testing-ready-for-testing/#comments</comments>
		<pubDate>Sun, 15 May 2011 18:18:04 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[Project Dash]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=1962</guid>
		<description><![CDATA[I&#8217;ve recreated the testing repository using the latest version of my Maven Tools 4 Eclipse. To browse the repository, please use the Nexus interface. If you pull in any dependencies from the repository, non-Eclipse artifacts will come from from Project Orbit. If you want non-Eclipse dependencies (like log4j) from Maven Central, you need to change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1962&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recreated the <a href="http://maven.eclipse.org/nexus/content/repositories/testing/" target="_blank">testing repository</a> using the latest version of my <a href="https://github.com/digulla/org.eclipse.dash.m4e.tools" target="_blank">Maven Tools 4 Eclipse</a>.</p>
<p>To browse the repository, please use the <a href="http://maven.eclipse.org/nexus/index.html" target="_blank">Nexus interface</a>.</p>
<p>If you pull in any dependencies from the repository, non-Eclipse artifacts will come from from <a href="http://www.eclipse.org/orbit/" target="_blank">Project Orbit</a>. If you want non-Eclipse dependencies (like <a class="zem_slink" title="Log4j" href="http://logging.apache.org/log4j" rel="homepage">log4j</a>) from Maven Central, you need to change your profiles.</p>
<p>Deactivate &#8220;<strong>m4e.orbit</strong>&#8221; and activate &#8220;<strong>m4e.maven-central</strong>&#8220;. From the command line, that&#8217;s &#8220;-P m4e.maven-central&#8221; but I suggest to put these into your <a href="http://maven.apache.org/settings.html#Active_Profiles">settings.xml</a> (add &#8220;&lt;activeProfile&gt;m4e.maven-central&lt;/activeProfile&gt;&#8221; to it).</p>
<p>Note that you don&#8217;t need to deactivate the profile m4e.orbit. As soon as you specify a profile on the command line or via the settings, it&#8217;s deactivated automatically.</p>
<p>&#8220;mvn help:active-profiles&#8221; and &#8220;mvn dependency:tree&#8221; are your friends.</p>
<p>Let me know if you find anything missing, odd, broken by  <a title="File a bug for product Dash, component Maven" href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Dash&amp;component=Maven" target="_blank">filing a bug</a> or posting a comment here.</p>
<h3>UPDATE 2011-05-30</h3>
<p>Some dependencies from the new repo can also be found on <a href="http://mvnrepository.com/" target="_blank">Maven Central</a>. One nasty problem is that <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=343069" target="_blank">both repos contain org.eclipse.equinox.app but the version from Maven Central contains odd dependencies which break your build</a>.</p>
<p>To fix this, add this to your parent/root POM:</p>
<p><pre class="brush: xml;">
  &lt;dependencyManagement&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.eclipse.dash&lt;/groupId&gt;
        &lt;artifactId&gt;dependency-management&lt;/artifactId&gt;
        &lt;version&gt;3.6.2&lt;/version&gt;
        &lt;type&gt;pom&lt;/type&gt;
        &lt;scope&gt;import&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;dependencies&gt;
  &lt;dependencyManagement&gt;
</pre></p>
<p>This will limit all version ranges to the versions found in our new repository. Since Maven Central didn&#8217;t import new versions for at least one year, this should fix all problems.</p>
<p>Related posts:</p>
<ul>
<li><a title="Permanent Link: Eclipse 3.6.2 Artifacts for Maven 2" href="http://blog.pdark.de/2011/03/20/eclipse-3-6-2-artifacts-for-maven-2/" rel="bookmark">Eclipse 3.6.2 Artifacts for Maven 2</a></li>
<li><a title="Permanent Link: Maven Tools for Eclipse: M2 Repository Analysis And Dependency Management" href="http://blog.pdark.de/2011/05/13/maven-tools-for-eclipse-m2-repository-analysis-and-dependency-management/" rel="bookmark">Maven Tools for Eclipse: M2 Repository Analysis And Dependency Management</a></li>
<li><a title="Permanent Link: Maven Tools for Eclipse: Patching POMs" href="http://blog.pdark.de/2011/04/11/maven-tools-for-eclipse-patching-poms/" rel="bookmark">Maven Tools for Eclipse: Patching POMs</a></li>
<li><a title="Permanent Link: Project Dash m4e Tools – Create Maven Artifacts From Eclipse Plug-ins" href="http://blog.pdark.de/2011/03/18/project-dash-m4e-tools-create-maven-artifacts-from-eclipse-plug-ins/" rel="bookmark">Project Dash m4e Tools – Create Maven Artifacts From Eclipse Plug-ins</a></li>
</ul>
<br /> Tagged: <a href='http://blog.pdark.de/tag/apache-maven/'>Apache Maven</a>, <a href='http://blog.pdark.de/tag/eclipse/'>Eclipse</a>, <a href='http://blog.pdark.de/tag/java/'>Java</a>, <a href='http://blog.pdark.de/tag/maven/'>Maven</a>, <a href='http://blog.pdark.de/tag/maven2/'>Maven2</a>, <a href='http://blog.pdark.de/tag/project-dash/'>Project Dash</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/1962/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1962&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2011/05/15/rc1-of-testing-ready-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven Tools for Eclipse: Patching POMs</title>
		<link>http://blog.pdark.de/2011/04/11/maven-tools-for-eclipse-patching-poms/</link>
		<comments>http://blog.pdark.de/2011/04/11/maven-tools-for-eclipse-patching-poms/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 19:16:35 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[Project Dash]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=1870</guid>
		<description><![CDATA[I&#8217;ve added a new feature to my Maven tools for Eclipse: Applying patches to POMs. This is a first step towards solving issues like this one: Bug 342046 - Invalid third party dependencies in Mavenized BIRT plugins I&#8217;m not 100% happy with the result, though. Currently, the patch overwrites the original code. I think it would be much [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1870&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">I&#8217;ve added a new feature to my <a href="https://github.com/digulla/org.eclipse.dash.m4e.tools">Maven tools for Eclipse</a>: <a href="https://github.com/digulla/org.eclipse.dash.m4e.tools/commit/1a32bcce59d22e4a0adc09dd9b863531197820af">Applying patches to POMs.</a></p>
<p>This is a first step towards solving issues like this one: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=342046"><strong>Bug 342046</strong></a> - Invalid third party dependencies in Mavenized BIRT plugins</p>
<p>I&#8217;m not 100% happy with the result, though. Currently, the patch overwrites the original code. I think it would be much better if it created a profile instead. This way, you could see the original code and it would be simple to switch between different solutions for a problem in a POM.</p>
<p>The two standard problems are:</p>
<ul>
<li>Bad version (no version, version range or wrong version)</li>
<li>Dependency name</li>
</ul>
<p>The latter is introduced by the fact that Eclipse projects need to pull dependencies via Project Orbit. Orbit often renames dependencies so there is a naming conflict if you pull your dependencies from Maven Central. So we need a way to say &#8220;I&#8217;m using Orbit&#8221; and &#8220;I want Maven Central&#8221;.</p>
<br /> Tagged: <a href='http://blog.pdark.de/tag/apache-maven/'>Apache Maven</a>, <a href='http://blog.pdark.de/tag/eclipse/'>Eclipse</a>, <a href='http://blog.pdark.de/tag/java/'>Java</a>, <a href='http://blog.pdark.de/tag/maven/'>Maven</a>, <a href='http://blog.pdark.de/tag/maven2/'>Maven2</a>, <a href='http://blog.pdark.de/tag/project-dash/'>Project Dash</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/1870/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/1870/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/1870/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/1870/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/1870/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/1870/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/1870/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/1870/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1870&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2011/04/11/maven-tools-for-eclipse-patching-poms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse 3.6.2 Artifacts for Maven 2</title>
		<link>http://blog.pdark.de/2011/03/20/eclipse-3-6-2-artifacts-for-maven-2/</link>
		<comments>http://blog.pdark.de/2011/03/20/eclipse-3-6-2-artifacts-for-maven-2/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 19:27:07 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[mt4e]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=1845</guid>
		<description><![CDATA[Update: The project has its own web site, now. Two days ago, I told you about Project Dash and my new tools for it. Well, we did run them over the weekend and import a lot of stuff from Eclipse 3.6.2 into a brand new testing Maven 2 repository. So if you want to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1845&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img">
<div class="wp-caption alignright" style="width: 190px"><a href="http://commons.wikipedia.org/wiki/File:Maven_logo.gif"><img class=" " title="Apache Maven logo." src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Maven_logo.gif/300px-Maven_logo.gif" alt="Apache Maven logo." width="180" height="41" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
</div>
<p><strong>Update: </strong>The <a href="http://wiki.eclipse.org/Maven_Tools_4_Eclipse" target="_blank">project has its own web site</a>, now.</p>
<p>Two days ago, I told you about <a href="http://blog.pdark.de/2011/03/18/project-dash-m4e-tools-create-maven-artifacts-from-eclipse-plug-ins/">Project Dash and my new tools</a> for it. Well, we did run them over the weekend and import a lot of stuff from Eclipse 3.6.2 into a brand new <a href="http://maven.eclipse.org/nexus/content/repositories/testing/">testing Maven 2 repository</a>.</p>
<p>So if you want to use Eclipse bundles in Maven 2 for your own projects (<a class="zem_slink" title="Standard Widget Toolkit" href="http://www.eclipse.org/swt/" rel="homepage">SWT</a>, <a class="zem_slink" title="Eclipse Modeling Framework" href="http://eclipse.org/emf/" rel="homepage">EMF</a>, even <a class="zem_slink" title="BIRT Project" href="http://www.eclipse.org/birt" rel="homepage">BIRT</a>), have a look and let me know:</p>
<ul>
<li>Did I miss anything?</li>
<li>Is anything wrong? Version numbers, names, dependencies, optional dependencies.</li>
<li>Any other comments?</li>
</ul>
<p>Making the world a better place, one line of code at a time! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><del>The <a href="http://blog.pdark.de/2011/03/18/project-dash-m4e-tools-create-maven-artifacts-from-eclipse-plug-ins/">tools are here</a>.</del></p>
<p>New project home page: <a href="http://wiki.eclipse.org/Maven_Tools_4_Eclipse" target="_blank">Maven Tools 4 Eclipse</a></p>
<br /> Tagged: <a href='http://blog.pdark.de/tag/apache-maven/'>Apache Maven</a>, <a href='http://blog.pdark.de/tag/eclipse/'>Eclipse</a>, <a href='http://blog.pdark.de/tag/maven/'>Maven</a>, <a href='http://blog.pdark.de/tag/maven2/'>Maven2</a>, <a href='http://blog.pdark.de/tag/mt4e/'>mt4e</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/1845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/1845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/1845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/1845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/1845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/1845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/1845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/1845/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1845&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2011/03/20/eclipse-3-6-2-artifacts-for-maven-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Maven_logo.gif/300px-Maven_logo.gif" medium="image">
			<media:title type="html">Apache Maven logo.</media:title>
		</media:content>
	</item>
		<item>
		<title>Project Dash m4e Tools &#8211; Create Maven Artifacts From Eclipse Plug-ins</title>
		<link>http://blog.pdark.de/2011/03/18/project-dash-m4e-tools-create-maven-artifacts-from-eclipse-plug-ins/</link>
		<comments>http://blog.pdark.de/2011/03/18/project-dash-m4e-tools-create-maven-artifacts-from-eclipse-plug-ins/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 11:52:00 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[Project Dash]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=1842</guid>
		<description><![CDATA[[UPDATE] There is now a testing repo which contains Eclipse 3.6.2 If you use Maven and Eclipse, you know the pain: How do I convert Eclipse plug-ins into Maven artifacts? The simple step is to run mvn eclipse:make-artifacts (or the ill fated eclipse:to-maven). But that&#8217;s only half of the work. A few of the plug-ins [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1842&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>[UPDATE]</strong> There is now a <a href="http://blog.pdark.de/2011/03/20/eclipse-3-6-2-artifacts-for-maven-2/">testing repo which contains Eclipse 3.6.2</a></p>
<p>If you use <a class="zem_slink" title="Apache Maven" rel="homepage" href="http://maven.apache.org">Maven</a> and <a href="http://www.eclipse.org/">Eclipse</a>, you know the pain: How do I convert Eclipse plug-ins into Maven artifacts?</p>
<p>The simple step is to run <code>mvn eclipse:make-artifacts</code> (or the ill fated <code>eclipse:to-maven</code>).</p>
<p>But that&#8217;s only half of the work. A few of the plug-ins have bad dependencies (stuff isn&#8217;t declared optional, polluting your runtime classpath; versions of dependencies are missing). And a major problem is source attachments. Eclipse separates those from the binaries, so you end up with <code>org.eclipse.core.runtime</code> and <code>org.eclipse.core.runtime.sources</code>.</p>
<p>A few days ago, <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=337068">bug 337068 &#8211; &#8220;Please set up maven.eclipse.org&#8221;</a> was fixed. The site exists and there is even a <a href="http://maven.eclipse.org/">Nexus running on it</a>.</p>
<p>Unfortunately, it&#8217;s a bit empty for now. We&#8217;re working on it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>One of the first steps is a set of tools that takes downloads from eclipse.org and converts them into proper Maven artifacts &#8211; with source and all.</p>
<p>Welcome Project Dash m4e Tools. A preliminary version is available on github: <a href="https://github.com/digulla/org.eclipse.dash.m4e.tools">https://github.com/digulla/org.eclipse.dash.m4e.tools</a></p>
<p>It consists of three tools so far:</p>
<ol>
<li><strong>m4e-import</strong> can import downloads (archived or unpacked) into a temporary Maven 2 repository. Your own local repository (<code>${user.home}/.m2/repository</code>) is left untouched!</li>
<li><strong>m4e-merge</strong> can merge several a temporary Maven 2 repositories into one.</li>
<li><strong>m4e-attach-sources</strong> tries to find all source bundles, moves+renames the source JAR to the right place and name and deletes the unnecessary folder.</li>
</ol>
<p>Next step is a tool to patch the artifacts. One open issue is: How to handle dependencies which come from <a href="http://www.eclipse.org/projects/project_summary.php?projectid=tools.orbit">Project Orbit</a> (bundling third party libraries for Eclipse projects).</p>
<p>Please visit <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=340416">Bug 340416 &#8211; &#8220;Resolving dependencies from Project Orbit&#8221;</a> if you have an opinion.</p>
<br /> Tagged: <a href='http://blog.pdark.de/tag/apache-maven/'>Apache Maven</a>, <a href='http://blog.pdark.de/tag/eclipse/'>Eclipse</a>, <a href='http://blog.pdark.de/tag/github/'>github</a>, <a href='http://blog.pdark.de/tag/maven/'>Maven</a>, <a href='http://blog.pdark.de/tag/maven2/'>Maven2</a>, <a href='http://blog.pdark.de/tag/project-dash/'>Project Dash</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/1842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/1842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/1842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/1842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/1842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/1842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/1842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/1842/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1842&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2011/03/18/project-dash-m4e-tools-create-maven-artifacts-from-eclipse-plug-ins/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven 3.0 is here</title>
		<link>http://blog.pdark.de/2010/10/18/maven-3-0-is-here/</link>
		<comments>http://blog.pdark.de/2010/10/18/maven-3-0-is-here/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 16:02:43 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[Jason van Zyl]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven2]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=1459</guid>
		<description><![CDATA[Maven 3.0 has been released. Related Articles The original blog post by Jason van Zyl: Apache Maven 3.0 has landed! Maven 3.0 released (maven.apache.org) Tagged: Apache, Apache Maven, Jason van Zyl, Java, Maven, Maven2<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1459&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://maven.apache.org/docs/3.0/release-notes.html">Maven 3.0 has been released</a>.<a href="http://darkviews.files.wordpress.com/2010/10/maven-feather.png"><img class="alignright size-full wp-image-1460" title="Maven Logo" src="http://darkviews.files.wordpress.com/2010/10/maven-feather.png?w=450" alt="Maven Logo"   /></a></p>
<h6 class="zemanta-related-title" style="font-size:1em;">Related Articles</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li">The original blog post by Jason van Zyl: <a href="http://www.sonatype.com/people/2010/10/maven-3-0-has-landed/">Apache Maven 3.0 has landed!</a></li>
<li class="zemanta-article-ul-li"><a href="http://maven.apache.org/docs/3.0/release-notes.html">Maven 3.0 released</a> (maven.apache.org)</li>
</ul>
<br /> Tagged: <a href='http://blog.pdark.de/tag/apache/'>Apache</a>, <a href='http://blog.pdark.de/tag/apache-maven/'>Apache Maven</a>, <a href='http://blog.pdark.de/tag/jason-van-zyl/'>Jason van Zyl</a>, <a href='http://blog.pdark.de/tag/java/'>Java</a>, <a href='http://blog.pdark.de/tag/maven/'>Maven</a>, <a href='http://blog.pdark.de/tag/maven2/'>Maven2</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/1459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/1459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/1459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/1459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/1459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/1459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/1459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/1459/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1459&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2010/10/18/maven-3-0-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>

		<media:content url="http://darkviews.files.wordpress.com/2010/10/maven-feather.png" medium="image">
			<media:title type="html">Maven Logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the FindBugs plugin for Maven with Java 5</title>
		<link>http://blog.pdark.de/2010/07/16/using-the-findbugs-plugin-for-maven-with-java-5/</link>
		<comments>http://blog.pdark.de/2010/07/16/using-the-findbugs-plugin-for-maven-with-java-5/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 09:50:11 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[FindBugs]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven2]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=1019</guid>
		<description><![CDATA[If you use the Maven 2 FindBugs plugin with Java 5 code, you will get a lot of errors like: Can't use annotations when running in JDK 1.4 mode! Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode! Can't use generics unless running in JDK 1.5 mode! Can't use enum as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1019&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use the Maven 2 FindBugs plugin with Java 5 code, you will get a lot of errors like:</p>
<pre>    Can't use annotations when running in JDK 1.4 mode!
    Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode!
    Can't use generics unless running in JDK 1.5 mode!
    Can't use enum as a keyword in pre-JDK 1.5 target
</pre>
<p>The solution is to set the <code>targetJdk</code> (even though this option isn&#8217;t mentioned in the docs and even <code>mvn help:describe</code> can&#8217;t find it):</p>
<p><pre class="brush: xml;">
                &lt;plugin&gt;
                    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                    &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
                    &lt;version&gt;2.3.1&lt;/version&gt;
                    &lt;configuration&gt;
                        &lt;targetJdk&gt;1.5&lt;/targetJdk&gt;
                    &lt;/configuration&gt;
                &lt;/plugin&gt;
</pre></p>
<p>Note that you should clean your project; otherwise the new option may not be used for some reason.</p>
<br /> Tagged: <a href='http://blog.pdark.de/tag/findbugs/'>FindBugs</a>, <a href='http://blog.pdark.de/tag/java/'>Java</a>, <a href='http://blog.pdark.de/tag/maven/'>Maven</a>, <a href='http://blog.pdark.de/tag/maven2/'>Maven2</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/1019/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/1019/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/1019/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/1019/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/1019/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/1019/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/1019/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/1019/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=1019&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2010/07/16/using-the-findbugs-plugin-for-maven-with-java-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>Attaching Sources To Eclipse Artifacts</title>
		<link>http://blog.pdark.de/2009/10/08/attaching-sources-to-eclipse-artifacts/</link>
		<comments>http://blog.pdark.de/2009/10/08/attaching-sources-to-eclipse-artifacts/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 08:14:56 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.pdark.de/?p=713</guid>
		<description><![CDATA[After running mvn eclipse:make-artifacts -DstripQualifier=true -DeclipseDir=...path/to/eclipse, you might have lots of source JARs but they aren&#8217;t in the right place for Maven 2 to pick them up. This little Python script fixes that. Just run it after eclipse:make-artifacts. Note: You may be wondering why I use eclipse:make-artifacts instead of the recommended eclipse:to-maven. Simple: I don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=713&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After running <code>mvn eclipse:make-artifacts -DstripQualifier=true -DeclipseDir=...path/to/eclipse</code>, you might have lots of source JARs but they aren&#8217;t in the right place for <a href="http://maven.apache.org/">Maven 2</a> to pick them up.</p>
<p>This little Python script fixes that. Just run it after <code>eclipse:make-artifacts</code>.</p>
<p><strong>Note:</strong> You may be wondering why I use <code>eclipse:make-artifacts</code> instead of the recommended <code>eclipse:to-maven</code>. Simple: I don&#8217;t like to have a dozen <code>core-*.jar</code> in my project.</p>
<p><pre class="brush: python;">
&quot;&quot;&quot;Maven 2 Eclipse Artifact Source resolver

After importing Eclipse artifacts into an M2 repository with

&gt; mvn eclipse:make-artifacts -DstripQualifier=true -DeclipseDir=.../eclipse

run this script to move all source JARs in the right place for
Maven 2 to pick them up.
&quot;&quot;&quot;
import os, sys
from shutil import copyfile

def processGroup(path):
    print 'group %s' % path
    for dir in os.listdir(path):
        path2 = os.path.join(path, dir)
        if '.' in dir:
            processArtifact(path2)
        else:
            processGroup(path2)

def processArtifact(path):
    srcPath = path + '.source'
    #print 'processArtifact',srcPath
    if os.path.exists(srcPath):
        processArtifactWithSource(path)

def processArtifactWithSource(basePath):
    binPath = basePath
    srcPath = basePath + '.source'
    baseName = os.path.basename(basePath)
    print 'artifact', baseName
    
    for version in os.listdir(binPath):
        vbinPath = os.path.join(binPath, version)
        vsrcPath = os.path.join(srcPath, version)
        
        srcJar = os.path.join(vsrcPath, '%s.source-%s.jar' % (baseName, version))
        destJar = os.path.join(vbinPath, '%s-%s-sources.jar' % (baseName, version))
        
        if os.path.exists(srcJar):
            print '%s -&gt; %s' % (srcJar, destJar)
            copyfile(srcJar, destJar)

m2repo = os.environ['M2_REPO']
if not m2repo:
    raise Exception('Env variable M2_REPO is not set')

root = os.path.join(m2repo, 'org', 'eclipse')
for dir in os.listdir(root):
    path = os.path.join(root, dir)
    processGroup(path)
</pre></p>
<p>Updated 01. December 2009: The script now figures out where your M2 repo is. Plus a minimum of documentation.</p>
<br /> Tagged: Eclipse, Maven2, Python <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/713/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=713&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2009/10/08/attaching-sources-to-eclipse-artifacts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>Nexus, a Maven Repository Manager</title>
		<link>http://blog.pdark.de/2008/07/26/nexus-a-maven-repository-manager/</link>
		<comments>http://blog.pdark.de/2008/07/26/nexus-a-maven-repository-manager/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 10:10:00 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[Nexus]]></category>

		<guid isPermaLink="false">http://darkviews.wordpress.com/2008/07/26/nexus-a-maven-repository-manager/</guid>
		<description><![CDATA[If you&#8217;re using Maven in a corporate environment, then you&#8217;re struggling with the same problems all over again: How to make sure that the build builds? While a simple task at first glance, there are a few hidden obstacles which boil down to two things: Downloads via the Internet and plugin or dependency version stability. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=130&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using Maven in a corporate environment, then you&#8217;re struggling with the same problems all over again: How to make sure that the build builds?</p>
<p>While a simple task at first glance, there are a few hidden obstacles which boil down to two things: Downloads via the Internet and plugin or dependency version stability. Both can be solved by a using a proxy or a in-house repository.</p>
<p>The guys from <a href="http://www.sonatype.com/">Sonatype</a> have been busy in the last months and have released <a href="http://blogs.sonatype.com/jvanzyl/2008/07/24/1216875180000.html">Nexus 1.0.0-beta-4.2</a> which gives you another option to chose from besides <a href="http://archiva.apache.org/">Archiva</a> or <a href="http://www.pdark.de/dsmp/">DSMP</a> (my own Maven 2 proxy). I&#8217;ve tried Nexus yesterday and I have to say that I&#8217;m very pleased with the result. As usual for Open Source Software, the beta is more stable than some post-beta commercial products and it delivers with <a href="http://www.sonatype.com/book/reference/repository-manager.html">very little setup</a> (follow the link to see the documentation).</p>
<p>Now, we have a second issue: version stability. Here is my recipe to achieve that. First of all, version anything in your POM. All dependencies, all plugins, everything. I&#8217;m using properties for that which I define in a common parent POM plus I&#8217;m using the <a href="http://www.sonatype.com/book/reference/pom-relationships.html#d0e8267">dependency management</a>. <a href="http://maven.apache.org/download.html">Maven 2.0.9</a> helps a lot here because it forces you to add version elements everywhere.</p>
<p>The next step is to make sure the maven builds can find their stuff. To do that, I suggest to set up <i>two</i> Nexus repositories. The first one is the &#8220;build&#8221; repository, the second one is the &#8220;cache&#8221; repository. While all developers should use the &#8220;build&#8221; repository, the &#8220;cache&#8221; repository can actually download dependencies from the Internet.</p>
<p>The &#8220;build&#8221; repository, on the other hand, is just a local repository with no Internet connection. To avoid mistakes, I suggest to install the build repo with the default settings but with all remote repositories deleted or turned into local ones. The &#8220;cache&#8221; repository should run on an unusual port and with the remote repositories enabled as described in the <a href="http://www.sonatype.com/book/reference/repository-manager.html">installation documentation</a>.</p>
<p>Next, you need to create a profile in your settings.xml which switches mirrors between the two. When you want to check out a new version of some plugin, switch to the cache repository and have it download all the new stuff. This will pollute your local copy of the maven repository but only yours. After you have verified that the build completes (or fixed all the problems you&#8217;ve got), check the RSS feeds of Nexus for stuff it downloaded. Then, all you have to do, is to copy those to the &#8220;build&#8221; repository. After a refresh, all the other developers in your company can use the new, verified downloads.</p>
<p>Clean your local repository and build again to make sure that your colleagues won&#8217;t have any problems after the change and you&#8217;re set.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/darkviews.wordpress.com/130/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/darkviews.wordpress.com/130/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=130&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2008/07/26/nexus-a-maven-repository-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>Jazoon: Spring and Maven 2</title>
		<link>http://blog.pdark.de/2008/06/26/jazoon-spring-and-maven-2/</link>
		<comments>http://blog.pdark.de/2008/06/26/jazoon-spring-and-maven-2/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 19:37:00 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Jazoon]]></category>
		<category><![CDATA[Maven2]]></category>

		<guid isPermaLink="false">http://darkviews.wordpress.com/2008/06/26/jazoon-spring-and-maven-2/</guid>
		<description><![CDATA[After some technical difficulties (the only ones I saw during the whole show, well done Jazoon!), we got a short company placement. One or two sentences, next slide, that&#8217;s how it&#8217;s ought to be (if at all; I mean if I was interested in your company, I&#8217;d look at the web site and not at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=107&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After some technical difficulties (the only ones I saw during the whole show, well done Jazoon!), we got a short company placement. One or two sentences, next slide, that&#8217;s how it&#8217;s ought to be (if at all; I mean if I was interested in your company, I&#8217;d look at the web site and not at the presentation but I digress).</p>
<p>They presented the <a href="http://EL4J.sf.net">EL4J</a> project which is the result of several years of developing web applications. From what I gathered, it makes it a bit more simple to wire web apps together using a bit of convention over configuration and Maven 2. It also has some Swing support in it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/darkviews.wordpress.com/107/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/darkviews.wordpress.com/107/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=107&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2008/06/26/jazoon-spring-and-maven-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
		<item>
		<title>IllegalStateException: The PluginDescriptor for the plugin &#8230; was not found</title>
		<link>http://blog.pdark.de/2008/04/14/illegalstateexception-the-plugindescriptor-for-the-plugin-was-not-found/</link>
		<comments>http://blog.pdark.de/2008/04/14/illegalstateexception-the-plugindescriptor-for-the-plugin-was-not-found/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 13:56:00 +0000</pubDate>
		<dc:creator>digulla</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Maven2]]></category>

		<guid isPermaLink="false">http://darkviews.wordpress.com/2008/04/14/illegalstateexception-the-plugindescriptor-for-the-plugin-was-not-found/</guid>
		<description><![CDATA[Ever saw this error? java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin [org.apache.maven.plugins:maven-resources-plugin] was not found. at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:325) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:212) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:176) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1033) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:997) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:477) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) When you see this, check: That the JAR file of the plug-in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=69&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever saw this error?</p>
<div>
<pre>java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin [org.apache.maven.plugins:maven-resources-plugin] was not found.
        at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:325)
        at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:212)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:176)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1033)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:997)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:477)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)</pre>
</div>
<p>When you see this, check:</p>
<ol>
<li>That the JAR file of the plug-in is okay and that it contains a file <tt>META-INF/maven/plugin.xml</tt></li>
<li>That the pom.xml of the plug-in exists and is valid.</li>
<li>That all parent POMs exist and are valid.</li>
</ol>
<p>Good luck. I&#8217;ve opened <a href="http://jira.codehaus.org/browse/MNG-3523">this issue</a> to get a better error message.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/darkviews.wordpress.com/69/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/darkviews.wordpress.com/69/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/darkviews.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/darkviews.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/darkviews.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/darkviews.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/darkviews.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/darkviews.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/darkviews.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/darkviews.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pdark.de&amp;blog=6384723&amp;post=69&amp;subd=darkviews&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pdark.de/2008/04/14/illegalstateexception-the-plugindescriptor-for-the-plugin-was-not-found/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8a4d6f03a8879432d8563aefbf48e787?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">digulla</media:title>
		</media:content>
	</item>
	</channel>
</rss>
