title: How to setup Eclipselink with JPA?
body: <p>The <a href="http://wiki.eclipse.org/EclipseLink/Maven" rel="noreferrer">Eclipselink documentation</a> says that I need the following entries in my pom.xml to get it with Maven:</p>
  
  <pre><code>&lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
      &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;
      &lt;version&gt;2.0.0&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
         ...
    &lt;/dependency&gt;
  &lt;dependencies&gt;
        ...
  &lt;repositories&gt;
    &lt;repository&gt;
       &lt;id&gt;EclipseLink Repo&lt;/id&gt;
       &lt;url&gt;http://www.eclipse.org/downloads/download.php?r=1&amp;amp;nf=1&amp;amp;file=/rt/eclipselink/maven.repo&lt;/url&gt;
    &lt;/repository&gt;    
        ...
  &lt;/repositories&gt; 
  </code></pre>
  
  <p>But when I try to use <code>@Entity</code> annotation NetBeans tells me, that the class cannot be found. And indeed: there is no Entity class in the javax.persistence package from Eclipselink. </p>
  
  <p>How do I have to setup Eclipselink with Maven?</p>