Yes there is. Create a parent pom.xml with the shared hibernate dependency and add a parent declaration to your 2 modules:
<parent>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
<relativePath>...path-to-parent.../pom.xml</relativePath>
</parent>
Declare the hibernate dependency in the dependencies section of your parent pom:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>${hibernate.version}</version>
</dependency>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…