In pom.xml for hibernate:
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
</dependency>
there is not version. But when I add to my application pom in Eclipse I receive error that version must be. Why this difference? Thanks.
The 2.0 is the version of the JPA supported not the version of the artifact
try
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
</dependency>
Arnon
Maven needs to know what version to download/check.
Add a version element as a child of dependency.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With