<?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; jaxb</title>
	<atom:link href="http://blog.infinitechaos.com/tag/jaxb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infinitechaos.com</link>
	<description>No magic here</description>
	<lastBuildDate>Tue, 19 Jan 2010 03:25:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Another m2eclipse tip</title>
		<link>http://blog.infinitechaos.com/2008/12/30/another-m2eclipse-tip/</link>
		<comments>http://blog.infinitechaos.com/2008/12/30/another-m2eclipse-tip/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 15:19:26 +0000</pubDate>
		<dc:creator>kyle</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[jaxb]]></category>
		<category><![CDATA[m2eclipse]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://blog.infinitechaos.com/?p=269</guid>
		<description><![CDATA[Came across another small bug with m2eclipse yesterday when editing an XML schema in a project that used  the Maven plugin for JAXB (jaxb2-maven-plugin).  You may find Eclipse complaining that it cannot build your project because of this error: An internal error occurred during: &#8220;Building workspace&#8221;. Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found The underlying problem may be [...]]]></description>
			<content:encoded><![CDATA[<p>Came across another small bug with <a title="Maven Integration for Eclipse" href="http://m2eclipse.codehaus.org/">m2eclipse</a> yesterday when editing an XML schema in a project that used  the Maven plugin for <a title="Java Architecture for XML Binding" href="http://java.sun.com/developer/technicalArticles/WebServices/jaxb/">JAXB</a> (jaxb2-maven-plugin).  You may find Eclipse complaining that it cannot build your project because of this error:</p>
<blockquote><p>An internal error occurred during: &#8220;Building workspace&#8221;.<br />
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found</p></blockquote>
<p>The underlying problem may be due to classloader funkiness with the embedded version of Maven (since command-line Maven works fine) or some transitive dependency not being handled correctly.</p>
<p>Anyway, the workaround mentioned in <a title="m2eclipse bug details" href="http://jira.codehaus.org/browse/MNGECLIPSE-716">this bug</a> on the Codehaus JIRA solved the problem.  The solution is to explicitly add Xerces as a dependency to your POM:</p>
<pre>&lt;dependency&gt;
    &lt;groupId&gt;xerces&lt;/groupId&gt;
    &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
    &lt;version&gt;2.8.1&lt;/version&gt;
&lt;/dependency&gt;</pre>
<p>Once you&#8217;ve done that, right-click on your project in the Package Explorer and select Maven &gt; Update Dependencies. Eclipse should then be able to rebuild the project.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinitechaos.com/2008/12/30/another-m2eclipse-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
