Hi,
I am trying to build a project with Maven 3 that is to be deployed on a Glassfish 2 Server running on Java 5. When deploying I get an Exception that seems to indicate that the Hibernate library that Maven included is incompatible with Java 5:
LifecycleException:
java.lang.UnsupportedClassVersionError: PWC1651: Class org.hibernate.ejb.HibernatePersistence has unsupported major or minor version numbers, which are greater
than those found in the Java Runtime Environment version 1.5.0_22
Here is how I added the dependency to Maven:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.1.1.Final</version>
</dependency>
I also included the JBoss Maven repository at
https://repository.jboss.org/nexus/cont ... lic-jboss/Any idea how I could get around that issue?
Thanks!
Björn