title: JPA from Maven repository with Ivy
body: <p>I'm converting an existing project using JPA + Hibernate to use Ivy for getting its dependencies. I can get almost everything, but have trouble getting JPA. This is my <strong>ivy.xml</strong> without JPA:</p>
  
  <pre><code>&lt;ivy-module version="2.0"&gt;
      &lt;info organisation="xxx" module="dataserver"/&gt;
      &lt;dependencies&gt;
          &lt;dependency org="commons-logging" name="commons-logging" rev="1.1.1"/&gt;
          &lt;dependency org="com.google.guava" name="guava" rev="r07"/&gt;
          &lt;dependency org="log4j" name="log4j" rev="1.2.16"/&gt;
          &lt;dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.4.0.GA"/&gt;
          &lt;dependency org="c3p0" name="c3p0" rev="0.9.1.2"/&gt;
          &lt;dependency org="mysql" name="mysql-connector-java" rev="5.1.14"/&gt;
          &lt;dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1"/&gt;
          &lt;dependency org="org.apache.openjpa" name="openjpa-persistence" rev="2.1.0"/&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>I expected to easily find JPA in the Maven repository, but it wasn't so. After a while I found OpenJPA:</p>
  
  <pre><code>&lt;ivy-module version="2.0"&gt;
      &lt;info organisation="xxx" module="dataserver"/&gt;
      &lt;dependencies&gt;
          &lt;dependency org="commons-logging" name="commons-logging" rev="1.1.1"/&gt;
          &lt;dependency org="com.google.guava" name="guava" rev="r07"/&gt;
          &lt;dependency org="log4j" name="log4j" rev="1.2.16"/&gt;
          &lt;dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.4.0.GA"/&gt;
          &lt;dependency org="c3p0" name="c3p0" rev="0.9.1.2"/&gt;
          &lt;dependency org="mysql" name="mysql-connector-java" rev="5.1.14"/&gt;
          &lt;dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1"/&gt;
          &lt;dependency org="org.apache.openjpa" name="openjpa-persistence" rev="2.1.0"/&gt;
      &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>
  
  <p>Though it's slow to download, it does appear to contain the interfaces/classes I was missing, such as <code>EntityManager</code>. However, it's not the same as the JPA version distributed with Hibernate I had, because I'm now missing the method <code>EntityManager.createQuery(String, Class)</code>. But I couldn' t find any newer version of OpenJPA than 2.1.0.</p>
  
  <p>What's the proper JPA source in the Maven repository?</p>