<?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>Kyle Smith &#187; felix</title>
	<atom:link href="http://blog.infinitechaos.com/tag/felix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infinitechaos.com</link>
	<description>No magic here</description>
	<lastBuildDate>Wed, 30 Mar 2011 14:35:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>m2eclipse tip</title>
		<link>http://blog.infinitechaos.com/2008/12/20/m2eclipse-tip/</link>
		<comments>http://blog.infinitechaos.com/2008/12/20/m2eclipse-tip/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 22:59:39 +0000</pubDate>
		<dc:creator>kyle</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[felix]]></category>
		<category><![CDATA[m2eclipse]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://blog.infinitechaos.com/?p=257</guid>
		<description><![CDATA[Here&#8217;s a tip for a very specific problem I recently encountered when using Maven and the Felix maven-bundle-plugin in Eclipse, and I&#8217;m sure it can happen with other plugins. There wasn&#8217;t an immediate answer to this problem when I used Google to search for it. When Maven is running in offline mode (set in the [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tip for a very specific problem I recently encountered when using <a title="Apache Maven" href="http://maven.apache.org">Maven</a> and the <a title="Apache Felix" href="http://felix.apache.org">Felix</a> <a title="Apache Felix Bundle Plugin for Maven" href="http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html">maven-bundle-plugin</a> in <a title="Eclipse" href="http://www.eclipse.org">Eclipse</a>, and I&#8217;m sure it can happen with other plugins. There wasn&#8217;t an immediate answer to this problem when I used Google to search for it.</p>
<p>When Maven is running in offline mode (set in the Maven section of the Eclipse preferences), if you haven&#8217;t specified a version for certain plugins — like the maven-bundle-plugin — Eclipse will report an error like this:</p>
<blockquote><p>Project build error:Cannot resolve pre-scanned plugin artifact (for use as an extension): org.apache.felix:maven-bundle-plugin: Failed to resolve extension plugin: org.apache.felix:maven-bundle-plugin:maven-plugin:RELEASE</p></blockquote>
<p>Maven outside of Eclipse will most likely continue to work fine, but Eclipse will be one unhappy camper.  Your project may even lose its Java nature if <a title="Maven Integration for Eclipse" href="http://m2eclipse.codehaus.org/">m2eclipse</a> is unable to resolve the dependencies.</p>
<p>The solution is to either allow Maven to run in online mode (Preferences &gt; Maven) or add a &lt;version&gt; element to the plugin configuration (see example below). It seems that specifying the version in the pluginManagement section of the pom.xml may not even solve the problem.</p>
<pre>&lt;plugin&gt;
	&lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
	&lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
	<strong>&lt;version&gt;1.4.3&lt;/version&gt;</strong>
	&lt;extensions&gt;true&lt;/extensions&gt;
	&lt;configuration&gt;
		...
	&lt;/configuration&gt;
&lt;/plugin&gt;</pre>
<p>Once you make one of these changes Eclipse/m2eclipse should rescan the project and fix it.  If it doesn&#8217;t get fixed immediately, right-click on your project in the Package Explorer and choose Maven &gt; Update Dependencies and Maven &gt; Update Project Configuration.</p>
<p><strong>Note:</strong> I&#8217;m assuming you&#8217;re using a stable development build of m2eclipse. The non-dev version didn&#8217;t have these options when I last checked.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinitechaos.com/2008/12/20/m2eclipse-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

