<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Maven, Hibernate, JPA</title>
	<atom:link href="http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/feed/" rel="self" type="application/rss+xml" />
	<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/</link>
	<description>Middleware tech talk</description>
	<pubDate>Fri, 21 Nov 2008 23:29:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fred</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1624</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Fri, 01 Feb 2008 22:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1624</guid>
		<description>I suffered also when I tried it first until I found that a nice guy in codehaus is maintaining a POM.
So now I have only:
&#62;dependencies&#60;
    &#62;dependency&#60;
        &#62;groupId&#60;junit&#62;/groupId&#60;
        &#62;artifactId&#60;junit&#62;/artifactId&#60;
        &#62;version&#60;3.8.1&#62;/version&#60;
        &#62;scope&#60;test&#62;/scope&#60;
    &#62;/dependency&#60;
    &#62;dependency&#60;
        &#62;groupId&#60;org.codehaus.mojo.hibernate3&#62;/groupId&#60;
        &#62;artifactId&#60;maven-hibernate3-jdk15&#62;/artifactId&#60;
        &#62;version&#60;2.0-alpha-1&#62;/version&#60;
    &#62;/dependency&#60;
    &#62;dependency&#60;
        &#62;groupId&#60;org.apache.derby&#62;/groupId&#60;
        &#62;artifactId&#60;derby&#62;/artifactId&#60;
        &#62;version&#60;10.2.2.0&#62;/version&#60;
    &#62;/dependency&#60;
&#62;/dependencies&#60;
I used JavaDB and so build a JUnit test that can run without container.
The code full runnable code is &lt;a href="https://www.jfrog.org/svn-jfrog/greenhouse/jpa/trunk/" rel="nofollow"&gt;here&lt;/a&gt;, and the blog entry &lt;a href="http://freddy33.blogspot.com/2007/07/jpa-namedqueries-and-jdbc-40.html" rel="nofollow"&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I suffered also when I tried it first until I found that a nice guy in codehaus is maintaining a POM.<br />
So now I have only:<br />
&gt;dependencies&lt;<br />
    &gt;dependency&lt;<br />
        &gt;groupId&lt;junit&gt;/groupId&lt;<br />
        &gt;artifactId&lt;junit&gt;/artifactId&lt;<br />
        &gt;version&lt;3.8.1&gt;/version&lt;<br />
        &gt;scope&lt;test&gt;/scope&lt;<br />
    &gt;/dependency&lt;<br />
    &gt;dependency&lt;<br />
        &gt;groupId&lt;org.codehaus.mojo.hibernate3&gt;/groupId&lt;<br />
        &gt;artifactId&lt;maven-hibernate3-jdk15&gt;/artifactId&lt;<br />
        &gt;version&lt;2.0-alpha-1&gt;/version&lt;<br />
    &gt;/dependency&lt;<br />
    &gt;dependency&lt;<br />
        &gt;groupId&lt;org.apache.derby&gt;/groupId&lt;<br />
        &gt;artifactId&lt;derby&gt;/artifactId&lt;<br />
        &gt;version&lt;10.2.2.0&gt;/version&lt;<br />
    &gt;/dependency&lt;<br />
&gt;/dependencies&lt;<br />
I used JavaDB and so build a JUnit test that can run without container.<br />
The code full runnable code is <a href="https://www.jfrog.org/svn-jfrog/greenhouse/jpa/trunk/" rel="nofollow">here</a>, and the blog entry <a href="http://freddy33.blogspot.com/2007/07/jpa-namedqueries-and-jdbc-40.html" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cédric Vidal</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1537</link>
		<dc:creator>Cédric Vidal</dc:creator>
		<pubDate>Tue, 15 Jan 2008 09:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1537</guid>
		<description>Hi Bill,

You might want to give a look at the Maven dependency mechanism documentation:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

It mentions transitive dependencies, which are very important to get right in order for maven to work properly.

You also might want to give a look at Mavenizer, a little tool I have created which helps in mavenizing third party libraries. It handles transitive dependencies:
http://mavenizer.sourceforge.net/

Kind regards,

Cédric</description>
		<content:encoded><![CDATA[<p>Hi Bill,</p>
<p>You might want to give a look at the Maven dependency mechanism documentation:<br />
<a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html" rel="nofollow">http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html</a></p>
<p>It mentions transitive dependencies, which are very important to get right in order for maven to work properly.</p>
<p>You also might want to give a look at Mavenizer, a little tool I have created which helps in mavenizing third party libraries. It handles transitive dependencies:<br />
<a href="http://mavenizer.sourceforge.net/" rel="nofollow">http://mavenizer.sourceforge.net/</a></p>
<p>Kind regards,</p>
<p>Cédric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alrubinger</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1464</link>
		<dc:creator>alrubinger</dc:creator>
		<pubDate>Tue, 08 Jan 2008 17:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1464</guid>
		<description>There's an example of extracting the versions into properties in the JBoss EJB3 Parent Build:

http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/build/pom.xml

...this way, all versions are together at the top, and will be consistent among all children of the parent (subproject POMs will not designate a version number).

S,
ALR</description>
		<content:encoded><![CDATA[<p>There&#8217;s an example of extracting the versions into properties in the JBoss EJB3 Parent Build:</p>
<p><a href="http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/build/pom.xml" rel="nofollow">http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/build/pom.xml</a></p>
<p>&#8230;this way, all versions are together at the top, and will be consistent among all children of the parent (subproject POMs will not designate a version number).</p>
<p>S,<br />
ALR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1460</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 08 Jan 2008 13:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1460</guid>
		<description>WTF
just imagine those are xml tags :)

&lt;code&gt;
properties
   hibernate-em.version
      (3.3.1.GA,]
   hibernate-em.version
properties
&lt;/code&gt;

and your dependency looks like
&lt;code&gt;
dependency
   groupId
      hibernate-entitymanager
   groupId
   artifactId
      hibernate-entitymanager
   artifactId
   version
      ${hibernate-em.version}
   version
dependency
&lt;/code&gt;

Hopefully this time it works.</description>
		<content:encoded><![CDATA[<p>WTF<br />
just imagine those are xml tags <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code><br />
properties<br />
   hibernate-em.version<br />
      (3.3.1.GA,]<br />
   hibernate-em.version<br />
properties<br />
</code></p>
<p>and your dependency looks like<br />
<code><br />
dependency<br />
   groupId<br />
      hibernate-entitymanager<br />
   groupId<br />
   artifactId<br />
      hibernate-entitymanager<br />
   artifactId<br />
   version<br />
      ${hibernate-em.version}<br />
   version<br />
dependency<br />
</code></p>
<p>Hopefully this time it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1458</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 08 Jan 2008 13:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1458</guid>
		<description>(Pls remove previous comment)
&lt;code&gt;
[3.3.1.GA,)
&lt;/code&gt;

&lt;code&gt;

            hibernate-entitymanager
            hibernate-entitymanager
            ${hibernate-em.version}
        
&lt;/code&gt;

(A Preview mode would be very helpful sometimes ;) )

The version range simply defines minimum 3.3.1.GA or better.</description>
		<content:encoded><![CDATA[<p>(Pls remove previous comment)<br />
<code><br />
[3.3.1.GA,)<br />
</code></p>
<p><code></p>
<p>            hibernate-entitymanager<br />
            hibernate-entitymanager<br />
            ${hibernate-em.version}</p>
<p></code></p>
<p>(A Preview mode would be very helpful sometimes <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>The version range simply defines minimum 3.3.1.GA or better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1457</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 08 Jan 2008 13:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1457</guid>
		<description>damn of course I meant (forgot the code tag)
&lt;code&gt;
[3.3.1.GA,)
&lt;/code&gt;

and in your dependencies like
&lt;code&gt;

            hibernate-entitymanager
            hibernate-entitymanager
            ${hibernate-em.version}
        
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>damn of course I meant (forgot the code tag)<br />
<code><br />
[3.3.1.GA,)<br />
</code></p>
<p>and in your dependencies like<br />
<code></p>
<p>            hibernate-entitymanager<br />
            hibernate-entitymanager<br />
            ${hibernate-em.version}</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billburke</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1447</link>
		<dc:creator>billburke</dc:creator>
		<pubDate>Mon, 07 Jan 2008 22:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1447</guid>
		<description>Thanks for the Maven lesson.  I'll have to figure out WTF that means now... :)</description>
		<content:encoded><![CDATA[<p>Thanks for the Maven lesson.  I&#8217;ll have to figure out WTF that means now&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1440</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 07 Jan 2008 19:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://bill.burkecentral.com/2008/01/07/maven-hibernate-jpa/#comment-1440</guid>
		<description>Well if the hibernate-entitymanager would be configured like the one on mvnrepository.com you would also get persistence-api and could leave out a lot of dependencies and only add them if you really need a specific version (annotations or in general hibernate). Furthermore I prefer either a parent pom with version extracted or at least in the same pom. Like 
[3.3.1.GA,)</description>
		<content:encoded><![CDATA[<p>Well if the hibernate-entitymanager would be configured like the one on mvnrepository.com you would also get persistence-api and could leave out a lot of dependencies and only add them if you really need a specific version (annotations or in general hibernate). Furthermore I prefer either a parent pom with version extracted or at least in the same pom. Like<br />
[3.3.1.GA,)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
