JPA 2.0 + Hibernate + Maven

This is a quick post. Well, more a personal reminder than an actual post. But, I thought it would be interesting for anyone trying to do the same thing I am, which is getting JPA 2.0 support with the latest Hibernate using Maven.

To achieve this, just add the following lines to your pom.xml:

<repository>
    <id>repository.jboss.org</id>
    <url>https://repository.jboss.org/nexus/content/groups/public/</url>
</repository>

Then, just use your favorite POM editor and add the org.hibernate dependencies as you see fit.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s