Maven EAR project with common persistence context

Recently I run into a use case where i had to replace simple WAR project by an EAR project containing multiple WAR projects (customer required a new application operating on the same DB schema). There were 2 things i needed to share among WAR files in the EAR: Hibernate entity classes persistence context Making the Hibernate entity classes available among EAR project First step was creating a Maven project of […]