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:


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