<?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>off-topic &#187; Maven</title>
	<atom:link href="http://off-topic.biz/en/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://off-topic.biz/en</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 22 Jul 2010 10:33:09 +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>Eclipse + Maven + AppEngine: Invalid classpath publish/export dependency</title>
		<link>http://off-topic.biz/en/eclipse-maven-appengine-invalid-classpath-publish-export-dependency/</link>
		<comments>http://off-topic.biz/en/eclipse-maven-appengine-invalid-classpath-publish-export-dependency/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 15:52:46 +0000</pubDate>
		<dc:creator>Olaf</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://off-topic.biz/en/?p=57</guid>
		<description><![CDATA[
While working with Eclipse and Google Plugin for Eclipse the Maven Integration Plugin I ran into the problem that the dependency on the JDO API library jdo2-api-2.3-ea.jar appears in the App Engine SDK and in the Maven dependencies imported from another project. The Eclipse Classpath Dependency Validator showed the following error message:

Invalid classpath publish/export dependency [...]]]></description>
			<content:encoded><![CDATA[<p>
While working with <a href="http://eclipse.org/">Eclipse</a> and <a href="http://code.google.com/appengine/docs/java/tools/eclipse.html">Google Plugin for Eclipse</a> the <a href="http://m2eclipse.sonatype.org/">Maven Integration Plugin</a> I ran into the problem that the dependency on the JDO API library jdo2-api-2.3-ea.jar appears in the App Engine SDK and in the Maven dependencies imported from another project. The Eclipse Classpath Dependency Validator showed the following error message:
</p>
<blockquote><p>Invalid classpath publish/export dependency /local/eclipse/galileo/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907291526/appengine-java-sdk-1.2.2/lib/user/orm/jdo2-api-2.3-ea.jar. The project contains another dependency with the same archive name.</p></blockquote>
<p>
The solution for this problem was using the notion of <a href="http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html">explicit dependency exclusion</a> of Maven 2.x in the pom.xml.</p>
]]></content:encoded>
			<wfw:commentRss>http://off-topic.biz/en/eclipse-maven-appengine-invalid-classpath-publish-export-dependency/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XPP3 pull-parser causing an ArrayIndexOutOfBoundsException: Google GWT with Eclipse, Maven and Hibernate</title>
		<link>http://off-topic.biz/en/xpp3-pull-parser-causing-an-arrayindexoutofboundsexception-google-gwt-with-eclipse-maven-and-hibernate/</link>
		<comments>http://off-topic.biz/en/xpp3-pull-parser-causing-an-arrayindexoutofboundsexception-google-gwt-with-eclipse-maven-and-hibernate/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 18:35:56 +0000</pubDate>
		<dc:creator>Olaf</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[XML Parser]]></category>

		<guid isPermaLink="false">http://off-topic.biz/en/?p=3</guid>
		<description><![CDATA[Today I lost almost two hours of productive work because I had problems compiling a simple Google GWT application. For software development I use Eclipse 3.4 (Ganymede) with the Maven Integration plugin. In case of GWT I also use the Cypal Studio.
My GWT application makes RPCs to a server backed by Hibernate. Including Hibernate (org.hibernate:hibernate-core-3.3.1.GA [...]]]></description>
			<content:encoded><![CDATA[<p>Today I lost almost two hours of productive work because I had problems compiling a simple Google GWT application. For software development I use Eclipse 3.4 (Ganymede) with the Maven Integration plugin. In case of GWT I also use the Cypal Studio.</p>
<p>My GWT application makes RPCs to a server backed by Hibernate. Including Hibernate (org.hibernate:hibernate-core-3.3.1.GA from the JBoss repository) into the classpath via Maven also includes XPP3 and the pull-parser-2 libraries. Then for some reason the Google GWT compiler uses the pull-parser-2 to parse the XML of the inherited modules.</p>
<p>The module com.google.gwt.user.User includes the module com.google.gwt.i18n.I18N which causes an ArrayIndexOutOfBoundsException:</p>
<pre>[ERROR] Line 29: Unexpected exception while processing element 'inherits'
java.lang.ArrayIndexOutOfBoundsException: null
    at java.lang.System.arraycopy(Native Method)
    at org.gjt.xpp.impl.tokenizer.Tokenizer.next(Tokenizer.java:1274)
    at org.gjt.xpp.impl.pullparser.PullParser.next(PullParser.java:392)
    at org.gjt.xpp.sax2.Driver.parseSubTree(Driver.java:415)
    at org.gjt.xpp.sax2.Driver.parse(Driver.java:310)
    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:310)</pre>
<p>This seems to be a bug in the pull-parser-2. Excluding the pull-parser from the hibernate-core dependency removes it from the class path, but the GWT compiler continues using it for parsing its XML modules. The solution was to include the pull-parser-2.1.10 in the Java Build Path of Eclipse and put it to the first position in the build class path order in Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://off-topic.biz/en/xpp3-pull-parser-causing-an-arrayindexoutofboundsexception-google-gwt-with-eclipse-maven-and-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
