title: maven share dependencies among different modules
body: <p>I have a project with 5 modules. </p>
  
  <p>2 of the modules have a dependency of hibernate. they are siblings and not parent child hence one cannot inherit another one's dependencies</p>
  
  <p>is there a way to specify hibernate related dependency in parent and make the 2 modules inherit it and the other 3 modules wont inherit it. </p>