I wrote a JUnit test case for JPA using spring. The testcase passes in eclips. But if I execute the same testcase using maven (mvn test) it fails.
My test case is :
It looks like you run in a Problem with the Java EE API package that contains only empty interfaces.
Replace
javaee javaee-api
by:
org.hibernate.javax.persistence hibernate-jpa-2.0-api 1.0.0.Final
More details can be found here.