<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<!-- LOOK OUT: YOU SHOULD USE A NEWER VERSION! -->
<version>5.2.12.Final</version>
</dependency>
<dependency>
<!-- update Hibernate dependency on Javassist
from 3.20.0 to 3.23.1 for Java 11 compatibility -->
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.23.1-GA</version>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- LOOK OUT: YOU SHOULD USE 3.8.0! -->
<version>3.7.0</version>
<configuration>
<release>${java.version}</release>
</configuration>
<dependencies>
<dependency>
<!-- update compiler plugin dependency on ASM
for Java 11 compatibility -->
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>
</plugin>