<div dir="ltr">Hi everybody,<div><br></div><div>I have the following usecase. I am developing a web application that uses JPA with Eclipse Link and will be deployed on SAP HANA Cloud Platform (think of it as Tomcat). Which means that I need the Eclipse Link dependencies in the pom.xml in the compile scope. When I generated the project and set up Eclipse Link, I got this in the pom:</div><div><br></div><div><div>  &lt;dependencies&gt;</div><div>    &lt;dependency&gt;</div><div>      &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;</div><div>      &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt;</div><div>      &lt;scope&gt;provided&lt;/scope&gt;</div><div>    &lt;/dependency&gt;</div><div>  &lt;/dependencies&gt;</div></div><div><br></div><div>However, I rather need something like:</div><div><br></div><div><div>        &lt;dependency&gt;</div><div>            &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;</div><div>            &lt;artifactId&gt;javax.persistence&lt;/artifactId&gt;</div><div>        &lt;/dependency&gt;<br></div><div>        &lt;dependency&gt;</div><div>            &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;</div><div>            &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;</div><div>        &lt;/dependency&gt;<br></div></div><div><br></div><div>I see in org.jboss.forge.addon.javaee.jpa.providers.EclipseLinkProvider:</div><div><br></div><div><div><br></div><div>   @Override</div><div>   public List&lt;Dependency&gt; listDependencies()</div><div>   {</div><div>      return Arrays.asList((Dependency) DependencyBuilder.create(&quot;org.eclipse.persistence:eclipselink&quot;),</div><div>               (Dependency) DependencyBuilder.create(&quot;org.eclipse.persistence:javax.persistence&quot;));</div><div>   }</div></div><div><br></div><div>So we already have functionality on provider level that knows which are the dependencies. However, it seems that this method is not called. What was the idea of having it? How can I make sure that the dependencies are correctly configured? </div><div><br></div><div>I think that it has something to do with the type of the container: if it is SAP HANA Cloud Platform, then find the dependencies for the JPA provider and add them in the default scope of the pom.xml instead of adding hibernate-jpa-2.0-api. If it is a full fledged application server, then we can go with the API in provided scope. Something like this.</div><div><br></div><div>WDYT?</div><div><br></div><div>Thanks,</div><div>Ivan</div></div>